javascript - TinyMCE how to put a div tag in a link? -


i did lot of testing can not manage big problem tinymce 3.xx

whenever want insert <div> tag type link farm link editor , places <div> result, here code:

before :

<a href="img.png" data-fancybox-group="image-gallery">   <img src="img.png" alt="" />   <div class="image-overlay-zoom"></div> </a> 

after :

<a href="img.png" data-fancybox-group="image-gallery"> <img src="img.png" alt="" /> </a> <div class="image-overlay-zoom"></div>   tinymce.init({valid_elements : '*[*]'}); 

how can put <div> tag in link?

thanks

it not work disabling automatic cleaning :

tinymce.init({cleanup : false'}); 

the answer lies here after reading following article :

http://www.pixafy.com/blog/2013/06/overcoming-magentos-wysiwyg-part-2-customizing-tinymce-settings/


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -