sync
authorAlan <alan@roojs.com>
Fri, 24 Sep 2021 02:37:22 +0000 (10:37 +0800)
committerAlan <alan@roojs.com>
Fri, 24 Sep 2021 02:37:22 +0000 (10:37 +0800)
Roo/htmleditor/FilterAttributes.js
Roo/htmleditor/FilterBlack.js
docs/json/roodata.json
docs/src/Roo_htmleditor_FilterAttributes.js.html
docs/tree.json

index 615505d..f48d988 100644 (file)
@@ -4,8 +4,8 @@
  * @class Roo.htmleditor.FilterAttributes
  * clean attributes and  styles including http:// etc.. in attribute
  * @constructor
- * Create a new Filter.
- * @param {Object} config Configuration options
+* Run a new Attribute Filter
+* @param {Object} config Configuration options
  */
 Roo.htmleditor.FilterAttributes = function(cfg)
 {
index 233aa23..b908561 100644 (file)
@@ -8,9 +8,28 @@
  *
  */
 
+/**
+ * @class Roo.htmleditor.FilterBlack
+ * remove blacklisted elements.
+ * @constructor
+ * Run a new Blacklisted Filter
+ * @param {Object} config Configuration options
+ */
+
+Roo.htmleditor.FilterBlack = function(cfg)
+{
+    Roo.apply(this, cfg);
+    this.walk(cfg.node);
+}
+
+Roo.extend(Roo.htmleditor.FilterBlack, Roo.htmleditor.Filter,
+{
 Roo.htmleditor.FilterBlack =  {
-    
+    /**
+     * @cfg {array} black blacklist of elements
+     */
     black : false, // array
+    
     walkWith : function(node, black)
     {
         this.black = black;
index e3cc514..c6790cc 100644 (file)
     "tree_children" : [],
     "tree_parent" : []
   },
+  "Roo.htmleditor.FilterAttributes" : {
+    "props" : [],
+    "events" : [],
+    "methods" : [],
+    "isAbstract" : false,
+    "isBuilderTop" : false,
+    "implementations" : [],
+    "tree_children" : [],
+    "tree_parent" : []
+  },
   "Roo.lib" : {
     "props" : [],
     "events" : [],
index 2cf5c02..b439036 100644 (file)
@@ -1,12 +1,12 @@
-<html><head><title>Roo/htmleditor/FilterAttributes.js</title><link rel="stylesheet" type="text/css" href="../../css/highlight-js.css"/></head><body class="highlightpage"><code class="jsdoc-pretty"><span class="jsdoc-comment">/**
- * filter attributes of nodes
- *
- * attribute white / clean ( fix http etc..)
- * and clean styles
- * 
- *
+<html><head><title>Roo/htmleditor/FilterAttributes.js</title><link rel="stylesheet" type="text/css" href="../../css/highlight-js.css"/></head><body class="highlightpage"><code class="jsdoc-pretty">
+
+<span class="jsdoc-comment">/**
+ * @class Roo.htmleditor.FilterAttributes
+ * clean attributes and  styles including http:// etc.. in attribute
+ * @constructor
+ * Create a new Filter.
+ * @param {Object} config Configuration options
  */
-
 </span><span class="jsdoc-var">Roo.htmleditor.FilterAttributes </span><span class="jsdoc-syntax">= </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">cfg</span><span class="jsdoc-syntax">)
 {
     </span><span class="jsdoc-var">Roo.apply</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">this</span><span class="jsdoc-syntax">, </span><span class="jsdoc-var">cfg</span><span class="jsdoc-syntax">);
@@ -23,7 +23,6 @@
     </span><span class="jsdoc-var">style_black </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">false</span><span class="jsdoc-syntax">,
 
 
-
     </span><span class="jsdoc-var">replaceTag </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">node</span><span class="jsdoc-syntax">)
     {
         </span><span class="jsdoc-keyword">if </span><span class="jsdoc-syntax">(!</span><span class="jsdoc-var">node.attributes </span><span class="jsdoc-syntax">|| !</span><span class="jsdoc-var">node.attributes.length</span><span class="jsdoc-syntax">) {
index d2aa5a7..6cdd724 100644 (file)
             "name" : "Roo.htmleditor.Filter",
             "cn" : [],
             "is_class" : false
+          },
+          {
+            "name" : "Roo.htmleditor.FilterAttributes",
+            "cn" : [],
+            "is_class" : false
           }
         ],
         "is_class" : false