Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
authorleon <leon@roojs.com>
Wed, 29 Mar 2023 04:52:02 +0000 (12:52 +0800)
committerleon <leon@roojs.com>
Wed, 29 Mar 2023 04:52:02 +0000 (12:52 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js

index 3b07e5b..1ec1fc6 100644 (file)
@@ -319,14 +319,13 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
                 }
                 if (url != '') {
                     this.selectedNode.setAttribute('href', newurl);
+                    this.editor.syncValue();
                     return;
                 }
                 if(newurl && newurl .match(/http(s):\/\/.+/)) {
                     this.editorcore.relayCmd('createlink', newurl);
                 }
                 this.editorcore.focus();
-                Roo.log("SYNC VALUE");
-                this.editor.syncValue();
             },
             cls : 'pub-error'
         });