[Opgelost] tinymce.init, waar staat dat?

Nederlandse ondersteuning voor CMS Made Simple

Moderator: velden

Post Reply
Adheera
Forum Members
Forum Members
Posts: 212
Joined: Sat Dec 10, 2011 12:19 pm

[Opgelost] tinymce.init, waar staat dat?

Post 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.
Last edited by Adheera on Fri Feb 07, 2014 7:50 pm, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: tinymce.init, waar staat dat?

Post by JohnnyB »

You can add extra TinyMCE configurations to the settings under the Advanced tab:
Extra configuration:
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Adheera
Forum Members
Forum Members
Posts: 212
Joined: Sat Dec 10, 2011 12:19 pm

Re: tinymce.init, waar staat dat?

Post 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?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: tinymce.init, waar staat dat?

Post 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"
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Adheera
Forum Members
Forum Members
Posts: 212
Joined: Sat Dec 10, 2011 12:19 pm

Re: tinymce.init, waar staat dat?

Post 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.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: tinymce.init, waar staat dat?

Post by JohnnyB »

Adheera wrote:Now i can celebrate the weekend and ejoy the olympics :-)
I agree!! ;D
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Dutch - Nederlands”