Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with focusing of dynamically added element #1569

Open
janklubus opened this issue Jan 13, 2021 · 0 comments
Open

Problem with focusing of dynamically added element #1569

janklubus opened this issue Jan 13, 2021 · 0 comments

Comments

@janklubus
Copy link

janklubus commented 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 attribute data-medium-focused="true" is missing

I there any way for fix focusing of dynamically added elements?

Thanks

@janklubus janklubus changed the title Dynamically added editable element focus problem Problem with focusing of dynamically added element Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant