wysiwyg - django-tinymce removes bootstrap HTML code -
wysiwyg - django-tinymce removes bootstrap HTML code -
i'm using/testing django-cms (2.3.5) + bootstrap based templates. using django-tinymce add together code:
<a class="carousel-control right" href="#this-carousel-id" data-slide="next">›</a>
but django-tinymce removes "data-slide="next""
<a class="carousel-control right" href="#this-carousel-id">›</a>
and of course of study nil works.
using wyeditor found no way modify options in settings.py. using tinymce can :
tinymce_default_config={ # general options 'mode': "textareas", 'theme': "advanced", 'remove_linebreaks': "false", 'convert_urls': "false", 'relative_urls': "false", 'theme_advanced_resizing': "true", 'paste_auto_cleanup_on_paste': "true", #'preformatted': "true", 'valid_elements': "+*[*]", 'width': "100%", 'height': "300px", 'theme_advanced_buttons1' : "formatselect,separator,bold,italic,hr,separator,link,unlink,separator,bullist,numlist,separator,undo,redo,", 'theme_advanced_buttons2' : "|,help,code,|", 'theme_advanced_buttons3' : "" , 'theme_advanced_blockformats' : "p,h1,h2,h3,blockquote", 'theme_advanced_toolbar_location' : "top", # illustration content css (should site css) #'content_css': 'css/example.css', #'content_css' : "/media/css/tiny_editor.css" }
workflow:
i open html popup i re-create code i reopen popup , wanted code there i save page , reopen popup , code has changed!how can avoid behavior?
i added options maintain spaces/tabs/comments/, maintain absolute path, /static/images/path/ converted ../../../../../static/*.
what have check/change?
thanks!
you need declare data-slide
valid attribute of link/a-tag. have acloser @ valid_elements setting of tinymce
tinymce wysiwyg django-cms django-tinymce
Comments
Post a Comment