From 762a29690e0247130368237a1373262c267c943d Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Thu, 7 Nov 2013 14:55:10 +0800 Subject: [PATCH] MDL-42684 TinyMCE: make tinymce start at full width --- lib/editor/tinymce/plugins/pdw/tinymce/editor_plugin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/editor/tinymce/plugins/pdw/tinymce/editor_plugin.js b/lib/editor/tinymce/plugins/pdw/tinymce/editor_plugin.js index 22e42b796ba..bd42cc07725 100644 --- a/lib/editor/tinymce/plugins/pdw/tinymce/editor_plugin.js +++ b/lib/editor/tinymce/plugins/pdw/tinymce/editor_plugin.js @@ -155,7 +155,7 @@ // Resizes the iframe by a relative height value _resizeIframe : function(ed, tb_id, dy) { var ifr = ed.getContentAreaContainer().firstChild; - var ifrcon = ed.getContentAreaContainer(); + var ultcon = ed.getContainer().parentNode; //Ultimate parent container var textarea = DOM.get(ed.id); var rows = textarea ? textarea.getAttribute('rows') : 3; @@ -173,7 +173,8 @@ } DOM.setStyle(ifr, 'height',DOM.getSize(ifr).h + dy); // Resize iframe - DOM.setStyle(ifr, 'width',DOM.getSize(ifrcon).w); // Resize iframe + DOM.setStyle(textarea, 'width',DOM.getSize(ultcon).w); + DOM.setStyle(ifr, 'width',DOM.getSize(ultcon).w); // Resize iframe ed.theme.deltaHeight += dy; // For resize cookie if (collapsedContainer) {