summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-16 09:28:55 +0000
committerctrlaltca@gmail.com <>2011-07-16 09:28:55 +0000
commitfedddfd60edb9cfe5bb5a90745ad7d8b963661ac (patch)
tree184efa20737fe468b64c77356612488c6ccab2d7 /framework/Web/UI/WebControls
parent07a205ffd62910c79e09c5fd5247868c4b163ec5 (diff)
applied prado-lazyload-in-callbacks-patch (ticket #348)
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/THtmlArea.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php
index 2411f8f3..383411c5 100644
--- a/framework/Web/UI/WebControls/THtmlArea.php
+++ b/framework/Web/UI/WebControls/THtmlArea.php
@@ -402,6 +402,8 @@ class THtmlArea extends TTextBox
$options['debug'] = false;
$js = TJavaScript::encode($options,true,true);
$script = "if(typeof(tinyMCE_GZ)!='undefined'){ tinyMCE_GZ.init({$js}); }";
+ if ($this->getPage()->getIsCallback())
+ $script.= 'tinymce.dom.Event._pageInit();';
$scripts->registerEndScript($key, $script);
}
}
@@ -420,7 +422,7 @@ class THtmlArea extends TTextBox
{
$scripts = $this->getPage()->getClientScript();
$options = TJavaScript::encode($this->getEditorOptions(),true,true); // Force encoding of empty strings
- $script = "if(typeof(tinyMCE)!='undefined'){ tinyMCE.init($options); }";
+ $script = "if(typeof(tinyMCE)!='undefined')\r\n{ tinyMCE.init($options); }";
$scripts->registerEndScript('prado:THtmlArea'.$this->ClientID,$script);
}