multiple tinymce textareas

前端 未结 5 1111
甜味超标
甜味超标 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:59

    use class in selector i have two or more textarea that i want init those with tiny int so

    
    
    .
    .
    .
    

    in init tinyint code:

    tinymce.init({
        selector: 'textarea.mytextarea',
        plugins : 'advlist autolink link lists preview table code pagebreak',
        .
        .
        .
    

提交回复
热议问题