multiple tinymce textareas excluding first

你说的曾经没有我的故事 提交于 2019-12-25 01:34:10

问题


How do we use tinymce in a class used multiple times, except the first time ?

I was looking at multiple tinymce textareas but could not find fully as what I wanted.

I have .wp-editor-area used multiple times, but do not want the mce in the first instance.

I had used :

<script>
  tinymce.init({
    selector: ".wp-editor-area"
  })
</script>

回答1:


Effectively you cannot "skip" any elements that match the selector's value - there is no configuration to do that.

Can you add a second class? Do the textareas in question also have an id? If you don't want to have one of these textareas match the selector you will need to find a selector that does not match that first textarea.



来源:https://stackoverflow.com/questions/55181418/multiple-tinymce-textareas-excluding-first

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!