Page 1 of 1

[Opgelost] tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 10:01 am
by Adheera
Ik wil graag in TinyMCE de pt veranderen in px.
Nou heb ik wel de code gevonden, maar waar moet je dat plaatsen?

tinymce.init({
fontsize_formats: "10px,11px,12px,13px,14px,15px,16px,17px,18px,20px,22px"
});

't Zal wel weer een heel domme vraag zijn, maar ik kan het niet vinden.

Re: tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 6:02 pm
by JohnnyB
You can add extra TinyMCE configurations to the settings under the Advanced tab:
Extra configuration:

Re: tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 6:41 pm
by Adheera
JohnnyB wrote:You can add extra TinyMCE configurations to the settings under the Advanced tab:
Extra configuration:
I tried to put the tinymce.ini there, the wysiwyg diappeared.

Just the line below did not work either.
fontsize_formats: "10px,11px,12px,13px,14px,15px,16px,17px,18px,20px,22px"

How can i change the fontsize in px in stead of pt?

Re: tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 7:16 pm
by JohnnyB
Sorry, I didn't read your code correctly. Add this to the Extra Configuration field:

Code: Select all

theme_advanced_font_sizes : "8px=8px, 10px=10px, 11px=11px, 12px=12px, 14px=14px"
Keep adding up to your desired font size. 26px=26px

If you have more than one rule in the Extra Configuration, they must be separated by a comma. The settings say, "one statement per line" but that is not correct. For example, this will work with a comma between each statement:

Code: Select all

extended_valid_elements : "iframe[marginheight|id|frameborder|scrolling|align|marginwidth|name|id|src|height|width|]",
theme_advanced_font_sizes : "8px=8px, 10px=10px, 11px=11px, 12px=12px, 14px=14px"

Re: tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 7:49 pm
by Adheera
Thanks a lot, JohnnyB.
Days of trying to find a solution.
Now i can celebrate the weekend and ejoy the olympics :-)
Thanks a lot.

Re: tinymce.init, waar staat dat?

Posted: Fri Feb 07, 2014 7:57 pm
by JohnnyB
Adheera wrote:Now i can celebrate the weekend and ejoy the olympics :-)
I agree!! ;D