From: Alan Date: Thu, 6 Jan 2022 09:24:38 +0000 (+0800) Subject: Roo/htmleditor/Tidy.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=062aeaf4c816a1b24e0791dce92686476b2cc50a Roo/htmleditor/Tidy.js --- 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, + }); + }