TinyEditor insert html snippet at cursor from code

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json