diff options
| author | Mohammed Shekha <msh@openerp.com> | 2013-04-09 18:18:57 +0530 |
|---|---|---|
| committer | Mohammed Shekha <msh@openerp.com> | 2013-04-09 18:18:57 +0530 |
| commit | e8a7d4fef5f15df2829c161166a41ebce5029bde (patch) | |
| tree | f6f4518c59e9647e2979df098a505ebf93f88801 /addons/web/static/lib | |
| parent | 905d13671b4b59c895044ef4e755745269619b31 (diff) | |
[FIX]Fixed the issue of cleditor, on window resize blur event not triggered except firefox so due to which value disappears from the container.
bzr revid: msh@openerp.com-20130409124857-gqqb87zc6mqk65gy
Diffstat (limited to 'addons/web/static/lib')
| -rw-r--r-- | addons/web/static/lib/cleditor/jquery.cleditor.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/lib/cleditor/jquery.cleditor.js b/addons/web/static/lib/cleditor/jquery.cleditor.js index e3446991daf..229f69baa66 100644 --- a/addons/web/static/lib/cleditor/jquery.cleditor.js +++ b/addons/web/static/lib/cleditor/jquery.cleditor.js @@ -296,6 +296,12 @@ // Bind the window resize event when the width or height is auto or %
if (/auto|%/.test("" + options.width + options.height))
$(window).resize(function() {
+ //Forcefully blurred iframe contentWindow, chrome, IE, safari doesn't trigger blur on window resize and due to which text disappears
+ var $frame = editor.$frame[0];
+ if(!$.browser.mozilla && $frame.contentWindow){
+ var contentWindow = $frame.contentWindow;
+ $(contentWindow).trigger('blur');
+ }
// CHM Note MonkeyPatch: if the DOM is not remove, refresh the cleditor
if(editor.$main.parent().parent().size()) {
refresh(editor);
|
