Note that there are some explanatory texts on larger screens.

plurals
  1. POdjango-tinymce removes bootstrap HTML code
    primarykey
    data
    text
    <p>I'm using/testing django-cms (2.3.5) + bootstrap based templates. Using django-tinymce I add the code:</p> <pre><code>&lt;a class="carousel-control right" href="#this-carousel-id" data-slide="next"&gt;›&lt;/a&gt; </code></pre> <p>But django-tinymce removes "data-slide="next"" </p> <pre><code>&lt;a class="carousel-control right" href="#this-carousel-id"&gt;›&lt;/a&gt; </code></pre> <p>And of course nothing works.</p> <p>Using WYeditor I found no way to modify the options in settings.py. Using tinyMCE I can :</p> <pre><code>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" } </code></pre> <p>Workflow:</p> <ul> <li>I open the HTML popup</li> <li>I copy the code</li> <li>I reopen the popup and the wanted code is there</li> <li>I save the page and I reopen the popup and the code has changed!</li> </ul> <p>How can I avoid this behavior?</p> <p>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/*. </p> <p>What do I have to check/change?</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload