[英]Tinymce with textarea content inside editor
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. Tinymce 正在从我的子文本区域中删除[marker-123]
文本。 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 剥离内部 textarea 的内容?
tinymce.init({
extended_valid_elements: 'textarea[*]',
editor_deselector : "foobar",
...
});
Selector with CSS class should start with dot(.).带有 CSS class 的选择器应以点 (.) 开头。 That is instead of calling the textarea with foobar
you should use .foobar
.也就是说,您应该使用.foobar
来代替使用foobar
调用 textarea。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.