The page has a tinyMCE text box and an outside button. It is required that when you click a button in a text field, and any text is inserted into the current position. I found how to make a similar, but not quite that:
// Обработчик нажатия кнопки // getContent сохраняет html активного редактора // setContent вставляет какой либо html в редактор old_html=tinyMCE.activeEditor.getContent(); tinyMCE.activeEditor.setContent( old_html+"Привет");
This way I can insert the html code at the beginning or end of the editor, but I’ll have to go inside. So I couldn’t find the desired function, can anyone know?