I am working Text Editor in Tinymce in Vuejs. I need to insert string by its position. But I cannot get exact position. I tried tinymce.activeEditor.selection.getRng() gave a wrong position when I break lines. Does anyone know how to get any position?
tinymce.activeEditor.selection.getRng()
tinymce.activeEditor.execCommand('mceInsertContent', false, '<span class="lngtbllbl">Table 1:</span>');
1.4m articles
1.4m replys
5 comments
56.9k users