Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Wed, 6 Oct 2021 03:40:45 +0000 (11:40 +0800)
committerAlan <alan@roojs.com>
Wed, 6 Oct 2021 03:40:45 +0000 (11:40 +0800)
Roo/HtmlEditorCore.js

index af48368..e3bdc58 100644 (file)
@@ -528,7 +528,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         var d = document.createElement('div');
         d.innerHTML = txt;
         new Roo.htmleditor.FilterStyleToTag({ node : d });
-        new Roo.htmleditor.FilterAttributes({ node : d });
+        new Roo.htmleditor.FilterAttributes({
+            node : d,
+            attrib_white : ['href'],
+        });
          
         this.insertAtCursor(d.innerHTML);