KeyPress event on TinyEditor

0
0

Hi, after spending a lot of time searching through the forum and documentation I failed to learn how to be able to use the KeyPress event of a TinyEditor.

‘ This doesn’t work

Private Sub TinyEditor1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TinyEditor1.KeyPress
‘Do something
End Sub

The TinyEditor is used by all users but only one user may be editing the text. In order to achieve this I “lock” the field while it is being used by someone. To prevent field being locked unneeded I made a timeout that will unlock the field after a certain amount of time. This time out needs to be reset if a user is actualy changing the field and thats where the keypress would come in handy.

Could you provide a mini sample on how to catch keyPress events on a TinyEditor?

Any help would be greatly appreciated!

Vincent

  • You must to post comments
0
0

TinyEditor works fine.

TinyMCE never redirected the keyboard events.

  • vincent_
    Thats to bad… TinyMCE looks a lot better in my application because it doesn’t have that gradient menubar backcolor.
  • Luca (ITG)
    We can extend the integration to wire the keypress event. You can also handle it by attaching to the javascript event – see events on tinymce docs. I will log the enhancement also for the CKEditor.
  • Kevin
    • Kevin
    • Jan 19, 2022 - 5:37 pm
    Hi vincent_, we are already push enhancement for CKEditor and TinyMCE in https://github.com/iceteagroup/wisej-extensions just pull last update and it’ll work.
  • You must to post comments
0
0

Hi, So it’s back again.. for whatever reason keypress events are no longer raised on tinyMCE.

Im using 2.5.23 and I have attached a sample project.

Thanks

Vincent

Attachment
  • You must to post comments
0
0

Thanks for the reply. I’ve tried to create a test project which I can share but ofcourse in that project it worked.

I updated the nuget package for the tinyEditor to 2.5.22 (from 2.5.21) and now it works! I did not test this on the other extended editors like MCE etc.

Anyway, updating to 2.5.22 resolved my issue!

Thanks

Vincent

  • You must to post comments
0
0

Hi Vicent

do you refer that code as like in the pic below is not working for you?

Im testing with ver 2.5.22.1 and works ok

If I misunderstand you, please attach us a runnable sample taht reproduce the issue

 

Regards

  • Kizaemon Date
    Hi Paul, > ver 2.5.22.1 I see the NuGet package ver 2.5.22, but I do not find the 2.5.22 installation set on the /builds page.
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.