multiple tinymce textareas

前端 未结 5 1116
甜味超标
甜味超标 2021-02-07 14:26

I use tinymce for a webpage that dynamically generates at least 5 texts.
The configuration I use only works on the first textarea unfortunately.



        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 15:12

    You should use different mode in your configuration. For example mode: "specific_textareas" to work for all textarea with a given class which is specified in the editor_selector parameter.

    In order to work on all textareas with class mceEditor you can use this:

    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "mceEditor",
        .....
    

提交回复
热议问题