multiple tinymce textareas

前端 未结 5 1108
甜味超标
甜味超标 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 14:55

    For TinyMCE 4.0 you have to use a selector or defining a tinymce.init object/method for each desired configuration (https://www.tinymce.com/docs/get-started/multiple-editors/).

    For example, this is a page with 3 editors:

    
    
    
      
      
    
    
    
      

    This Title Can Be Edited If You Click Here

    This section1 of content can be edited...

    This section2 of content can be edited...

提交回复
热议问题