Page 1 of 2

Width of TinyMCE-editor

Posted: Mon Jan 05, 2015 3:53 pm
by svasti
Just trying out some new templates and I notice, that the width of Tinymce is not fixed, not even in the supplied templates.
If you make Tinymce wider oder narrower, it will stay that way even when you are changing templates (can be seen nicely in the demo).
Tinymce somewho retains the width, it seems this is stored in some php cache???
So once the webmaster inadvertently changes the width, the Wysywig gets corrupted.
Hm. is this a feature or a bug?
CKeditor doesn't have it, here the editor retains the correct width.

Re: Width of TinyMCE-editor

Posted: Mon Jan 05, 2015 4:45 pm
by manu
Hi Svasti, happy new year!
There is a cookie TinyMCE_text_size holding the value, which is only set when changing the width by dragging..
IMHO it's a feature. Non touched it takes the width provided, see the responsiveHTML template. If touched it stays (the width) session life time. Log out and in again and it's resetted.

Re: Width of TinyMCE-editor

Posted: Mon Jan 05, 2015 6:05 pm
by manu
There is a bunch of theme_advanced_resizing properties where these can be set (therefore in the editor ini files).

Re: Width of TinyMCE-editor

Posted: Mon Jan 05, 2015 8:01 pm
by svasti
Yeah, happy new year Manu!
And thanx. I wondered if I'd made a mistake in the templates, but so it seems it is just as it should be.

Re: Width of TinyMCE-editor

Posted: Mon Jan 05, 2015 9:14 pm
by cmb
manu wrote:There is a cookie TinyMCE_text_size holding the value, which is only set when changing the width by dragging..
Never noticed that before -- good to know. :)

Re: Width of TinyMCE-editor

Posted: Tue Jan 06, 2015 10:37 am
by svasti
manu wrote:If touched it stays (the width) session life time. Log out and in again and it's resetted.
I tried with Chrome and Firefox and IE and it was not resetted. So I checked the cookies in Firefox and found:
  • TinyMCE_text_size, valid till end of session
  • PHPSESSID, valid till end of session
However the session was long over. It seems, the browser doesn't get to know when the session is ending. So only the next day TinyMCE will be resized.

Re: Width of TinyMCE-editor

Posted: Tue Jan 06, 2015 11:12 am
by cmb
svasti wrote:However the session was long over. It seems, the browser doesn't get to know when the session is ending. So only the next day TinyMCE will be resized.
A browser session usually only ends, when the browser is closed. Anyhow, the browser doesn't know anything about a server side session, and both concepts are not really related.

Re: Width of TinyMCE-editor

Posted: Tue Jan 06, 2015 1:31 pm
by svasti
Wow, now I've learned something.
manu wrote:Log out and in again and it's resetted.
That's not the case if one doesn't shut down the browser.
cmb wrote:A browser session usually only ends, when the browser is closed.
Yeah, now the cookie is gone and the width is again normal.

Re: Width of TinyMCE-editor

Posted: Tue Jan 06, 2015 4:53 pm
by manu
svasti wrote:
manu wrote:Log out and in again and it's resetted.
That's not the case if one doesn't shut down the browser.
You are right, the browser has to be closed.

Re: Width of TinyMCE-editor

Posted: Sun May 31, 2015 10:28 am
by wsim123
manu wrote:
svasti wrote:
manu wrote:Log out and in again and it's resetted.
That's not the case if one doesn't shut down the browser.
You are right, the browser has to be closed.
.............................................
There is another disadvantage of tinymce. It has no preview mode - ckeditor 4 has a plugin for that.
After switching from editormode to preview one looses the editorposition.
A help wold be a button which opens the edited text in the preview mode in a new target-window