Tinymce - Event on set the carret inside textarea - tinymce

Which is the event when you set the caret inside tinymce editor? For some reason, Click event works only for the first click. Is there any other event except click?

You could use the focus onActivate event. For a full list of possible tinymce events check out this page and have a look on the right side of the page, there is a list.

Related

How to lazily start up "inline" TinyMCE after the user focuses in the editable area?

I have a page with multiple contenteditable areas. These are all "inline" editors.
I want to defer initializing TinyMCE until the user actually clicks (or focuses) in one of those areas. How can I activate TinyMCE in response to such an event?
This simplified jsfiddle demonstrates the issue: https://fiddle.tiny.cloud/ibiaab/21
Click in the editor.
Observe that there is no focus event.
Observe that the cursor is not where you clicked.
Click outside the editor.
Observe that there is no blur event.
Observe that the toolbar does not disappear.
After that, things will be ok

I'd like to add an event listener to a custom column definition in ag-grid

I need to add an event listener to an ag-grid header that fires when enter is pressed only when the column is currently focused in ag-grid. The reason for this is because I'm trying to open a custom modal. I already have it firing on an event click of the button I created. However, this is not accessible, so I need to be able to tab to it and then press enter to open the modal.
Currently I am using the headerComponentParams: template: to render the html necessary in the header.

jquery autocomplete on copy paste not trigger change event - ie11

Copy paste not working in ie11-
I am trying to set value of autocomplete by using ctrl+v, then after instantally i fired another shortcut button click(F8) event.
But problem is that whenever I doing above behaviour the button command event fired first instead of autocomplete change. Then value is not updated into autocomplete observable.
This is working on all other browser just Internet Explorer causes issue.
Jquery Autocomplete change is fired only when the control loose focus or after the specified delay. If you want to fire the change immediately you can have set delay to 0 millisecond or force the blur event of the contorl.

Propagate drop events from TinyMCE editor to the parent element

I have a TinyMCE editor embedded in a page in which the outer element has an ondrop handler that uploads dropped files.
However, if the user drops a file on the TinyMCE editor, the parent handler is never called. Regardless of whether I enable or disable drag-drop in the editor, the event never propagates to the parent element.
Is there a way to propagate an ondrop event from the TinyMCE editor to the surrounding element?
The editor itself is an iFrame so if you want to propagate the event you need to make sure you are passing it to the parent if you want the page to get the event.
Perhaps you can make a TinyMCE Fiddle or CodePen of what you are doing so people can see what you have tried?

GWT focus problem when triggered elsewhere

Here is my setup:
I have a button and a textbox
The textbox has an "onFocus" Handler which triggers the "selectAll" method
the button has an "onClick" Handler which does the following:
show textbox
textbox.focus(true) and
textbox.selectAll();
But it does not (on mobile devices).
The thing is: this works in FF and Safari - but it does not on mobile WebKit. When I click the button the field gets focused and selected for a milisecond (sometimes not even that) and then returns to focus the button …
A already tried to insert a Timer which then would do the focus - does not work either.
I also tried to capture all events and prevent them - because there is an onFocus event being fired by the button after onClick. I even tried setting the focus to the textbox from the onFocus event of the button. No chance.
Any other Ideas?
The problem is that GWT doesn't compile Javascript code for touch devices. You will need to create your own implementation.
Take a look to this article: Supporting multi-touch events