Bug 24764: TinyMCE shouldnt do automatic code cleanup when editing HTML in News Feature
TEST PLAN: 1. Make a new news item and use the TinyMCE editor, click on the <> icon to go to the Source code editor 2. Add some HTML like <i class="fa fa-facebook-official" aria-hidden="true">TEST</i> and save it. 3. Go back in and notice that TinyMCE has changed it to: <p><em class="fa fa-facebook-official">TEST</em></p> 4. It should not auto clean up and also it should not autowrap with <p> tag. 5. Apply patch patch, and repeat step 2. Save again. 6. It should not have automatiicly changed any HTML or added any <p> wrapper. Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
parent
71eb787fbd
commit
0b7d3b4331
|
|
@ -296,6 +296,10 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
|
|||
[% INCLUDE 'str/tinymce_i18n.inc' %]
|
||||
<script>
|
||||
tinyMCE.init({
|
||||
verify_html: false,
|
||||
force_br_newlines : false,
|
||||
force_p_newlines : false,
|
||||
forced_root_block : '',
|
||||
branding : false,
|
||||
content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css",
|
||||
menubar : "file edit view insert format tools table",
|
||||
|
|
|
|||
Loading…
Reference in New Issue