?
avatar thekrotek
thekrotek
9 Apr 2016

It looks like TinyMCE editor HTML area width and height can not be set externally, only via plugin settings. And I'm having this issue like forever.

When I try to set width and height like this:

JEditor::getInstance(JFactory::getConfig()->get('editor'))->display('myeditor', '', '100%', '500', '100', '25');

Only textarea element dimensions are affected, but not HTML area. HTML area always takes its dimensions from plugin settings.

I looked into plugin code and everything is passed correctly in onDisplay event. Yet no result in the browser. It seems like width and height can only be customized on init, but not on display.

avatar thekrotek thekrotek - open - 9 Apr 2016
avatar brianteeman
brianteeman - comment - 9 Apr 2016

If it is correct in your report that you are using 3.4.8 please update to 3.5.1 and confirm that you still have the issue


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9812.

avatar brianteeman brianteeman - change - 9 Apr 2016
Status New Information Required
avatar thekrotek
thekrotek - comment - 9 Apr 2016

Yes, exactly the same issue exists since the dawn of time and upto 3.5.1. Just tested on 3.5.1 and it's even worse:

TinyMCE plugin settings

Width: 500
Height: 350

PHP script

Width: 60%
Height: 550

Actual dimensions

Textarea: Width and Height: PHP script inherited
HTML area: Width: 100%, Height: plugin settings inherited

On 3.4.8 HTML area properly takes Width and Height from plugin settings.

avatar brianteeman brianteeman - change - 9 Apr 2016
Category Fields Plugins
avatar brianteeman brianteeman - change - 9 Apr 2016
Status Information Required New
avatar brianteeman
brianteeman - comment - 10 May 2016

Closing as a duplicate report


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9812.

avatar brianteeman brianteeman - change - 10 May 2016
Status New Duplicate Report
Closed_Date 0000-00-00 00:00:00 2016-05-10 19:35:10
Closed_By brianteeman
avatar brianteeman brianteeman - close - 10 May 2016

Add a Comment

Login with GitHub to post a comment