From 062aeaf4c816a1b24e0791dce92686476b2cc50a Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 6 Jan 2022 17:24:38 +0800 Subject: [PATCH] Roo/htmleditor/Tidy.js --- Roo/htmleditor/Tidy.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Roo/htmleditor/Tidy.js b/Roo/htmleditor/Tidy.js index b89d4347d8..b4489d9320 100644 --- a/Roo/htmleditor/Tidy.js +++ b/Roo/htmleditor/Tidy.js @@ -2,7 +2,7 @@ /** * @class Roo.htmleditor.Tidy * Tidy HTML - * @cfg {Roo.HtmlEditorCore} core the editor. + * * @constructor * Create a new Filter. * @param {Object} config Configuration options @@ -23,12 +23,19 @@ Roo.htmleditor.Tidy.toString = function(node) Roo.htmleditor.Tidy.prototype = { + /** + * + * @cfg {Roo.HtmlEditorCore} core the editor. + */ + core : false, - tidy : function(node, indent) { - + new Roo.htmleditor.TidySerializer({ + indent : 2, + }); + } -- 2.39.2