481 Posts in 150 Topics by 238 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1047 Views |
-
TinyMCE HTML Editor Auto-balancing Tag Nesting

10 November 2010 at 10:27pm
If you put - <span><span></span><span></span></span>
It will sa save as - <span><span><span></span></span></span>
My init configuration in mysite/_config --
HtmlEditorConfig::get('cms')->setOptions(array(
'forced_root_block' => ""
)); -
Re: TinyMCE HTML Editor Auto-balancing Tag Nesting

11 November 2010 at 1:22am
hi
you post brings me the spam sketk into mind (anyway this gaves spam the name)
http://www.youtube.com/watch?v=ODshB09FQ8wthis probable was not very helpfull but what is the real-live usecase for that anyway?
this probable more helpfull:
HtmlEditorConfig::get('cms')->setOption('verify_html', false);see here:
http://doc.silverstripe.org/htmleditorconfig?s[]=htmleditorconfigluk
-
Re: TinyMCE HTML Editor Auto-balancing Tag Nesting

11 November 2010 at 2:22am
I still have the problem.
HtmlEditorConfig::get('cms')->setOption('verify_html', false); --- it did'nt work.
i also tried 'cleanup' => false and still have the problem.
Any ideas how to totally disable the automatic cleanning function after saving the content?
-
Re: TinyMCE HTML Editor Auto-balancing Tag Nesting

11 November 2010 at 2:32am
uhm.. did you put it in _config.php or function getCMSFields? here it works on 2.4.2 if it's in _config.php
-
Re: TinyMCE HTML Editor Auto-balancing Tag Nesting

11 November 2010 at 3:55am Last edited: 11 November 2010 4:28am
Yes, I put it inside mysite/_config.php
I also tried it to a fresh install silverstripe in my localhost and stil have the problem.
Please try to insert <span><span></span><span></span></span> in the HTML Source Editor then save it.
It will save as <span><span><span></span></span></span>.
I think the silverstripe is causing the cleaning because I can replicate the problem in my standalone TinyMCE that I downloaded.
| 1047 Views | ||
|
Page:
1
|
Go to Top |

