I have the following markup im trying to initialize.
<textarea id="main">
Some Text<br>
<textarea class="foobar">[marker-123]</textarea>
</textarea>
Tinymce is stripping out the [marker-123]
text from my sub textarea. I tried to keep it by doing the following but couldn't get it to work. Is there a better way to prevent Tinymce from stripping the contents of the inner textarea?
tinymce.init({
extended_valid_elements: 'textarea[*]',
editor_deselector : "foobar",
...
});
Selector with CSS class should start with dot(.). That is instead of calling the textarea with foobar
you should use .foobar
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.