How can I insert text or a html snippet intoSnippet TinyEditor control at cursor position by code
Also included in the latest release (1.3.35).
Best regards
Frank
Hi Guenter,
the latest development build (1.3.27) should fix that issue.
Best regards
Frank
Hi Frank
I tried it , but it’s not properly working. After a “inserthtml” the insertion is shown in the tiny editor window, but the tinyeditor.text property is not updated . You have to make some manual keyboard input after the insertion, then the inserted html is in tinyeditor.text.
You can see this in the the attached test project.
Hi Guenter,
good news. We found a way to add this feature to the TinyEditor extension.
Please redownload and rebuild it from our extension page.
Then you can use this.editor.ExecCommand (“insertHTML”, “<b>Test</b>”); to insert any kind of HTML at current position.
Find a list of all commands here: https://developer.mozilla.org/en-US/docs/Web/API/Document/ExecCommand
Hope that helps.
Best regards
Frank
Hi Guenter,
this is currently not supported. I have added enhancement request WJ-7885 for it.
Best regards
Frank
Please login first to submit.