Forums | Mahara Community

Support /
Mahara TinyMCE Bootstrap Button code


anonymous profile picture
Account deleted
Posts: 3

22 March 2016, 8:07

I have been trying to put Bootstrap Button when using TinyMCE. However the button code is stripped out.

Please help and advice.

 

Thank you

Robert Lyon's profile picture
Posts: 749

22 March 2016, 10:28

Hi Asad,

Chances are that some of the code for the button is not accepted by TinyMCE - to check what the TinyMCE is accepting you can view HTML source on the page and look for the 'extended_valid_elements' setting within 'tinyMCE.init'.

It will list the valid html tags and which attributes are valid for those tags.

Cheers

Robert

anonymous profile picture
Account deleted
Posts: 3

23 March 2016, 10:23

Thank Robert for your quick reply.

How to I check the extended_valid_elements' setting within 'tinyMCE.init'..

 

Thank you

anonymous profile picture
Account deleted
Posts: 3

23 March 2016, 10:40

Thank you Robert for your reply.

How I could also edit  the extended_valid_elements' setting within 'tinyMCE.init' so that  it accepts Bootstrap code.

 

Thank you in advance.

 

 

Kristina Hoeppner's profile picture
Posts: 4717

30 March 2016, 21:22

Hello Asad,

You may find more information on the TinyMCE website at https://www.tinymce.com/docs/configure/content-filtering/#extended_valid_elements

Depending on what you want to do, you may also need a plugin for TinyMCE that supports Bootstrap.

Cheers

Kristina

 

5 results