Hello,
I have added the plugin pagebreak to tinymce which is button that insert an html comment <!-- pagebreak --> where i want the content to be cut.
i use a little snippet to do so:
<?php
$content = $scriptProperties['input'];
$splitter = $scriptProperties['options'];
$pos = strpos($content, $splitter);
if($pos !== $false){
return substr($content, 0, $pos);
} else {
return $content;
}
which is used like an output filter:
[[+content:ContentSplitter='<!-- pagebreak -->`]]
On save TinyMCE seems to strip out all the html comment.
If i check the db, the comment is not there anymore, and if i add another one manually like <!-- test --> it is stripped out also.
If a desactivate tiny MCE it works well.
Is it an activated options in tinyMCE setting ?
EDIT
It works and i’ve changed nothing. I don’t really understand...