//>>built
define("dojox/editor/plugins/PrettyPrint","dojo dijit dojox dijit/_editor/_Plugin dojo/_base/connect dojo/_base/declare dojox/html/format".split(" "),function(e,h,f,k){var g=e.declare("dojox.editor.plugins.PrettyPrint",k,{indentBy:-1,lineLength:-1,useDefaultCommand:!1,entityMap:null,_initButton:function(){delete this.command},setToolbar:function(b){},setEditor:function(b){this.inherited(arguments);var a=this;this.editor.onLoadDeferred.addCallback(function(){a.editor._prettyprint_getValue=a.editor.getValue;
a.editor.getValue=function(){var c=a.editor._prettyprint_getValue(arguments);return f.html.format.prettyPrint(c,a.indentBy,a.lineLength,a.entityMap,a.xhtml)};a.editor._prettyprint_endEditing=a.editor._endEditing;a.editor._prettyprint_onBlur=a.editor._onBlur;a.editor._endEditing=function(c){c=a.editor._prettyprint_getValue(!0);a.editor._undoedSteps=[];a.editor._steps.push({text:c,bookmark:a.editor._getBookmark()})};a.editor._onBlur=function(c){this.inherited("_onBlur",arguments);var d=a.editor._prettyprint_getValue(!0);
d!=a.editor.savedContent&&(a.editor.onChange(d),a.editor.savedContent=d)}})}});e.subscribe(h._scopeName+".Editor.getPlugin",null,function(b){b.plugin||"prettyprint"!==b.args.name.toLowerCase()||(b.plugin=new g({indentBy:"indentBy"in b.args?b.args.indentBy:-1,lineLength:"lineLength"in b.args?b.args.lineLength:-1,entityMap:"entityMap"in b.args?b.args.entityMap:f.html.entities.html.concat([["\u00a2","cent"],["\u00a3","pound"],["\u20ac","euro"],["\u00a5","yen"],["\u00a9","copy"],["\u00a7","sect"],["\u2026",
"hellip"],["\u00ae","reg"]]),xhtml:"xhtml"in b.args?b.args.xhtml:!1}))});return g});