I'm using/testing django-cms (2.3.5) + bootstrap based templates. Using django-tinymce I add the 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 nothing works.
Using WYeditor I found no way to modify the options in settings.py. Using tinyMCE I 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",
# Example content CSS (should be your site CSS)
#'content_css': 'css/example.css',
#'content_css' : "/media/css/tiny_editor.css"
}
Workflow:
- I open the HTML popup
- I copy the code
- I reopen the popup and the wanted code is there
- I save the page and I reopen the popup and the code has changed!
How can I avoid this behavior?
I also added the options to keep the spaces/tabs/comments/, to keep the absolute path, but /static/images/path/ is always converted to ../../../../../static/*.
What do I have to check/change?
Thanks!