我需要添加一个带有jQuery函数的tinymce编辑器。我知道tinymce是一个基于js的编辑器,因此需要有一种方法来执行以下操作:
<div class="container">
<div class"text">
Some text in this div here blub bla bli blu
</div>
<div class"edit-button"></div>
</div>
jQuery(\'.edit-button\').click(function () {
var description = jQuery(\'.text\');
var description_content = description.text();
//Hide the description in the frontend
jQuery(description).hide();
jQuery(\'.edit-button\').hide();
//Create Tinymce here, pre-fill the editor with the description text and display it inside of the <div class="container">
});
我搜索了很多,但没有前进。你能帮帮我吗?非常感谢。