简体   繁体   English

Tinymce编辑器选择器

[英]Tinymce editor selector

hey guys I have tinymce editor 嘿,我有tinymce编辑

tinymce.init ({ selector: "textarea", }); tinymce.init({选择器:“ textarea”,});

I want to have some textareas without tinymce editor tools and some with that selector , how can I make that exceptions? 我想拥有一些没有tinymce编辑器工具的文本区域,而有些具有选择器的文本区域,我该如何做例外呢?

You Can simply add and ID with your textarea on which you want tinymce then update your selector for init function. 您可以简单地在您要添加文本的文本区域中添加ID并ID,然后为init函数更新选择器。 ie

tinymce.init({
    selector: 'textarea#editable'
});

Check more options here: 在此处检查更多选项:

https://www.tinymce.com/docs/configure/integration-and-setup/#replaceatextareaelementwithideditable https://www.tinymce.com/docs/configure/integration-and-setup/#replaceatextareaelementwithideditable

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM