A small problem with the rich text editor tinymce.
At the beginning of thepage, there are some textarea, in window.onload. Write the initialization method of tinymce:
//tinymce
tinymce.init({
selector: "textarea",
language: "zh_CN",
menubar: false,
mode: "textareas",
width: 700,
height: 300,
branding: false,
plugins: "link lists textcolor wordcount colorpicker textpattern",
toolbar: "bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat",
});
when the entire page is loaded, some more textarea, will be added dynamically. The problem encountered at this time is that these new dynamically added textarea, have the appearance of a tinymce editor, but the button cannot be clicked and the edit area cannot be edited.
personal feeling should be because it is not initialized (or activated? ) it"s no use for these newly added textarea, to try timing tinymce.remove () and then re-init.
I would like to ask if there are any similar problems? Thank you