Width of TinyMCE-editor

Questions about how to use the online - editors and suggestions how to improve them
svasti
Posts: 1648
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Width of TinyMCE-editor

Postby svasti » Mon Jan 05, 2015 3:53 pm

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.

manu
Posts: 576
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Width of TinyMCE-editor

Postby manu » Mon Jan 05, 2015 4:45 pm

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.

manu
Posts: 576
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Width of TinyMCE-editor

Postby manu » Mon Jan 05, 2015 6:05 pm

There is a bunch of theme_advanced_resizing properties where these can be set (therefore in the editor ini files).

svasti
Posts: 1648
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Width of TinyMCE-editor

Postby svasti » Mon Jan 05, 2015 8:01 pm

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.

cmb
Posts: 10869
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Width of TinyMCE-editor

Postby cmb » Mon Jan 05, 2015 9:14 pm

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. :)
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

svasti
Posts: 1648
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Width of TinyMCE-editor

Postby svasti » Tue Jan 06, 2015 10:37 am

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.

cmb
Posts: 10869
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Width of TinyMCE-editor

Postby cmb » Tue Jan 06, 2015 11:12 am

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.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

svasti
Posts: 1648
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Width of TinyMCE-editor

Postby svasti » Tue Jan 06, 2015 1:31 pm

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.

manu
Posts: 576
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Width of TinyMCE-editor

Postby manu » Tue Jan 06, 2015 4:53 pm

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.

wsim123
Posts: 63
Joined: Thu Feb 19, 2015 4:44 pm

Re: Width of TinyMCE-editor

Postby wsim123 » Sun May 31, 2015 10:28 am

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


Return to “Editors”

Who is online

Users browsing this forum: No registered users and 1 guest