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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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