var QTags,edCanvas,edButtons=[],edAddTag=function(){},edCheckOpenTags=function(){},edCloseAllTags=function(){},edInsertImage=function(){},edInsertLink=function(){},edInsertTag=function(){},edLink=function(){},edQuickLink=function(){},edRemoveTag=function(){},edShowButton=function(){},edShowLinks=function(){},edSpell=function(){},edToolbar=function(){};function quicktags(t){return new QTags(t)}function edInsertContent(t,n){return QTags.insertContent(n)}function edButton(t,n,e,o,i){return QTags.addButton(t,n,e,o,i,"",-1)}!function(){var t,u=function(t){var n,e,o,i;"undefined"!=typeof jQuery?jQuery(document).ready(t):((n=u).funcs=[],n.ready=function(){if(!n.isReady)for(n.isReady=!0,e=0;e":"dfw"===this.id?(n=o&&o.isActive()?"":' disabled="disabled"',o=o&&o.isOn()?" active":"",'"):''},d.Button.prototype.callback=function(){},d.TagButton=function(t,n,e,o,i,a,u){d.Button.call(this,t,n,i,a,u),this.tagStart=e,this.tagEnd=o},d.TagButton.prototype=new d.Button,d.TagButton.prototype.openTag=function(t,n){n.openTags||(n.openTags=[]),this.tagEnd&&(n.openTags.push(this.id),t.value="/"+t.value)},d.TagButton.prototype.closeTag=function(t,n){var e=this.isOpen(n);!1!==e&&n.openTags.splice(e,1),t.value=this.display},d.TagButton.prototype.isOpen=function(t){var n=0,e=!1;if(t.openTags)for(;!1===e&&n")},d.LinkButton.prototype=new d.TagButton,d.LinkButton.prototype.callback=function(t,n,e,o){"undefined"==typeof wpLink?(o=o||"http://",!1===this.isOpen(e)?(o=prompt(quicktagsL10n.enterURL,o))&&(this.tagStart='',d.TagButton.prototype.callback.call(this,t,n,e)):d.TagButton.prototype.callback.call(this,t,n,e)):wpLink.open(e.id)},d.ImgButton=function(){d.TagButton.call(this,"img","img","","")},d.ImgButton.prototype=new d.TagButton,d.ImgButton.prototype.callback=function(t,n,e,o){o=o||"http://";var i=prompt(quicktagsL10n.enterImageURL,o);i&&(o=prompt(quicktagsL10n.enterImageDescription,""),this.tagStart=''+o+'',d.TagButton.prototype.callback.call(this,t,n,e))},d.FullscreenButton=function(){d.Button.call(this,"fullscreen",quicktagsL10n.fullscreen,"f",quicktagsL10n.toggleFullscreen)},d.FullscreenButton.prototype=new d.Button,d.FullscreenButton.prototype.callback=function(t,n){n.id&&"undefined"!=typeof wp&&wp.editor&&wp.editor.fullscreen&&wp.editor.fullscreen.on()},d.DFWButton=function(){d.Button.call(this,"dfw","","f",quicktagsL10n.dfw)},d.DFWButton.prototype=new d.Button,d.DFWButton.prototype.callback=function(){var t;(t=window.wp)&&t.editor&&t.editor.dfw&&window.wp.editor.dfw.toggle()},d.TextDirectionButton=function(){d.Button.call(this,"textdirection",quicktagsL10n.textdirection,"",quicktagsL10n.toggleTextdirection)},d.TextDirectionButton.prototype=new d.Button,d.TextDirectionButton.prototype.callback=function(t,n){var e="rtl"===document.getElementsByTagName("html")[0].dir,o=(o=n.style.direction)||(e?"rtl":"ltr");n.style.direction="rtl"===o?"ltr":"rtl",n.focus()},edButtons[10]=new d.TagButton("strong","b","",""),edButtons[20]=new d.TagButton("em","i","",""),edButtons[30]=new d.LinkButton,edButtons[40]=new d.TagButton("block","b-quote","\n\n
","
\n\n"),edButtons[50]=new d.TagButton("del","del",'',""),edButtons[60]=new d.TagButton("ins","ins",'',""),edButtons[70]=new d.ImgButton,edButtons[80]=new d.TagButton("ul","ul","
    \n","
\n\n"),edButtons[90]=new d.TagButton("ol","ol","
    \n","
\n\n"),edButtons[100]=new d.TagButton("li","li","\t
  • ","
  • \n"),edButtons[110]=new d.TagButton("code","code","",""),edButtons[120]=new d.TagButton("more","more","\x3c!--more--\x3e\n\n",""),edButtons[140]=new d.CloseButton}();