Simplifying toolbar list button
[fnpeditor.git] / modules / documentCanvas / canvas / documentElement.js
index 4d74722..1a2ef91 100644 (file)
@@ -103,6 +103,12 @@ $.extend(DocumentElement.prototype, {
 
     isVisible: function() {
         return this instanceof DocumentTextElement || this.getWlxmlTag() !== 'metadata';
+    },
+
+    isInsideList: function() {
+        return this.parents().some(function(parent) {
+            return parent.is('list');
+        });
     }
 });