TinyEditor insert html snippet at cursor from code

0
0

How can I insert text or a html snippet intoSnippet TinyEditor control at cursor position by code

  • You must to post comments
0
0

Also included in the latest release (1.3.35).

Best regards
Frank

  • You must to post comments
0
0

Hi Guenter,

the latest development build (1.3.27) should fix that issue.

Best regards
Frank

  • You must to post comments
0
0

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.

Attachment
  • You must to post comments
0
0

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

  • You must to post comments
0
0

Hi Guenter,

this is currently not supported. I have added enhancement request WJ-7885 for it.

Best regards
Frank

  • Guenter Roessler
    Hi Frank when will this feature be available?
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.