Sunday 15 June 2014

javascript - How to hide cursor blinker (caret) in wysiwyg editors on demand? (redactor.js) -


I'm trying to hide the blinking caret when clicking on some elements in wysiwyg editors (in my case redactor.js) I am, but I think all are equal.

I do not want to disable the whole input area, it is merely hiding the carat and does not allow any input when clicking on some elements. <

You can set the care position when clicking on some elements.

Set the cursor position in a specific state of an element:

  $ ('# redactor'). Redirector ('setCaret', element, 4);   

Set the cursor to the end of an element:

  $ ('# redactor'). Redactor ('selectionEnd', element);    

No comments:

Post a Comment