X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=gui%2Fbaculum%2Fframework%2FWeb%2FJavascripts%2Fsource%2Fprado%2Fcontrols%2Fhtmlarea4.js;h=64a78176f2f5b78dedd2e9bf3df677503c2221e8;hb=2f10e42cf4544d881e16b22051aca6d87331322a;hp=cd3c6a0e72d26d192a216791fd59d7153d2f7665;hpb=591fcc55ecd759cd56942a2c45a21dec7eadb3ab;p=bacula%2Fbacula diff --git a/gui/baculum/framework/Web/Javascripts/source/prado/controls/htmlarea4.js b/gui/baculum/framework/Web/Javascripts/source/prado/controls/htmlarea4.js index cd3c6a0e72..64a78176f2 100644 --- a/gui/baculum/framework/Web/Javascripts/source/prado/controls/htmlarea4.js +++ b/gui/baculum/framework/Web/Javascripts/source/prado/controls/htmlarea4.js @@ -1,6 +1,6 @@ /* - * + * * HtmlArea (tinyMCE 4) wrapper * * @author Gabor Berczi @@ -8,7 +8,7 @@ */ -Prado.WebUI.THtmlArea4 = Class.create(Prado.WebUI.Control, +Prado.WebUI.THtmlArea4 = jQuery.klass(Prado.WebUI.Control, { initialize: function($super, options) { @@ -39,14 +39,14 @@ Prado.WebUI.THtmlArea4 = Class.create(Prado.WebUI.Control, if (prev) try { - tinyMCE.execCommand('mceFocus', false, this.ID); + tinyMCE.execCommand('mceFocus', false, this.ID); // when removed, tinyMCE restores its content to the textarea. If the textarea content has been // updated in this same callback, it will be overwritten with the old content. Workaround this. - // var curtext = $(this.ID).html(); + // var curtext = jQuery(this.ID).html(); tinyMCE.execCommand('mceRemoveControl', false, this.ID); - // $(this.ID).html(curtext); + // jQuery(this.ID).html(curtext); } - catch (e) + catch (e) { // suppress error here in case editor can't be properly removed // (happens when