medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Problem with focusing of dynamically added element

Open janklubus opened this issue 3 years ago • 0 comments

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

janklubus avatar Jan 13 '21 14:01 janklubus