Jump to content
javad2140

Tinymce Inserting Code

Recommended Posts

Hi 

I Want Add This Code in Tinymce

<a href="#" data-toggle="tooltip" data-placement="top" title="Hooray!">Top</a>

But After Save My Code Change To 

<a href="#" title="Hooray!">Top</a>

Plz  Guide Me . Thanks

Edited by javad2140 (see edit history)

Share this post


Link to post
Share on other sites

CDATA entries should not affect the javascript

does the script work after save?

  • Like 1

Share this post


Link to post
Share on other sites

No . Not Work 

I Insert Java Code in Header File And This problem Was Solved .

But Tinymce Remove href="#" data-toggle="tooltip" data-placement="top" And Not Work Tooltip

How add data-toggle Attributes in a[name|href|target|title]

Share this post


Link to post
Share on other sites

ahhh i missed these non-default tags

you use extended tinymce or simple (default) ?

  • Like 1

Share this post


Link to post
Share on other sites

Thanks

I Use simple (default) Tinymce

and Test with Your Extended Version But problem not solved .

Share this post


Link to post
Share on other sites

I know the solution to this problem is in Config Content Filtering 
and I tried valid_elements , valid_children , extended_valid_elements , cleanup : false but not work
I'm gonna help managers and users experienced
Thanks

Share this post


Link to post
Share on other sites

ahhh i missed these non-default tags

you use extended tinymce or simple (default) ?

I Use simple (default) Tinymce

Thanks

Share this post


Link to post
Share on other sites

you know Apart from Validate.php  which files will investigate and filter the content Tinymce ?

Share this post


Link to post
Share on other sites

Did you already try what I proposed? Adding data-toggle and data-placement to the allowed attributes?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More