tinyMCE with Javascript -
i attempting insert text data @ cursor position containing other text data. i'm using following tinymce code: tinymce.activeeditor.selection.setcontent("text string"); instead of being inserted, overwrites existing data text string passed in appearing in buffer. in examining documentation, found code supposed replace, not insert text @ cursor location. whoever coded mistaken in its' use. my question: there different piece of code allow insertion, not replacement of text data data buffer? you want insertcontent api: https://www.tinymce.com/docs/api/tinymce/tinymce.editor/#insertcontent for example: tinymce.activeeditor.insertcontent("<p>this new</p>");