Integrating JTK with tinyMCE 4.x

Integrating my Javascript Thaana Keyboard library to handle Thaana entry within tinyMCE for a full-featured rich-text Thaana editor is very straightforward. You just need the following config in the tinyMCE initialization.

setup: function (editor) {
      editor.on('keypress', function (e) {
          thaanaKeyboard.value = '';
          thaanaKeyboard.handleKey(e);
          editor.insertContent(thaanaKeyboard.value);
      });
}


Enjoy!


Trackbacks

  1. No Trackbacks

Comments

Display comments as (Linear | Threaded)

  1. No comments

Add Comment


HTML-Tags will be converted to Entities.
Standard emoticons like :-) and ;-) are converted to images.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.