Problem with focusing of dynamically added element
janklubus opened this issue · 0 comments
janklubus commented
Description
I develop very simple implementation of medium editor to wordpress advanced custom fields. I initialize medium editor for every acf textarea. For standart textareas it works perfectly. Only problem is with new dynamically added textareas (by js, on repeater field). Medium editor is initialized, but it not monitor focus of textarea.
When I click to the .medium-editor-element
, the attribute data-medium-focused="true"
is missing
I there any way for fix focusing of dynamically added elements?
Thanks