Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan <alan@roojs.com>
Mon, 27 Sep 2021 07:25:15 +0000 (15:25 +0800)
committerAlan <alan@roojs.com>
Mon, 27 Sep 2021 07:25:15 +0000 (15:25 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 58f6b49..bcc5ee1 100644 (file)
@@ -447,7 +447,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 actiontype : 'tidy',
                 html: 'Tidy HTML Source',
                 handler: function(a,b) {
-                    editorcore.doc.body.innerHTML = editorcore.domToHTML();
+                    new Roo.htmleditor.Tidy(editorcore.doc.body);
                     editorcore.syncValue();
                 },
                 tabIndex:-1