You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
janklubus
changed the title
Dynamically added editable element focus problem
Problem with focusing of dynamically added element
Jan 13, 2021
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 attributedata-medium-focused="true"
is missingI there any way for fix focusing of dynamically added elements?
Thanks
The text was updated successfully, but these errors were encountered: