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

Unable to edit link on pop-up modal #266

Open
jhetuts opened this issue Oct 12, 2020 · 6 comments
Open

Unable to edit link on pop-up modal #266

jhetuts opened this issue Oct 12, 2020 · 6 comments

Comments

@jhetuts
Copy link

jhetuts commented Oct 12, 2020

Initializing Froala Editor on a modal produced this un-editable input for link and text link but no issue on standard in-page initialization.

My initialization were based on the special method onManualControllerReady that you have.
I initialized the editor upon mounting of component; manually,
image
And destroy it after unmount,
image
So that I can avoid calling an previous instance.

I'm using it a modal since this was the firs flow of our development in terms of implementing widgets.
Attached a video recording link for your reference.
https://drive.google.com/file/d/1OiVHHEFgbpKyRa5EBLugJS44DB1h2gvX/view?usp=sharing

This was the dom btw, no changes.
image
Froala-unable to edit.zip

And btw, it was already raised before by one of my colleague. Maybe this would help Ticket #22957

@jhetuts
Copy link
Author

jhetuts commented Oct 12, 2020

P.s. Ticket was created through your website support

@DevStarks
Copy link

👍

@uguraktas
Copy link

uguraktas commented Jan 25, 2021

is there a solution for this?

@DevStarks
Copy link

DevStarks commented Jan 25, 2021

@uguraktas what worked for me was switching from material-ui modal to the react-modal. Not sure what difference in the two implementations broke the froala inputs but you might find some answers there.

@uguraktas
Copy link

@uguraktas what worked for me was switching from material-ui modal to the react-modal. Not sure what difference in the two implementations broke the froala inputs but you might find some answers there.

Hi @DevStarks, thanks for suggesting. Now we are using bootstrap modal. What do you think about switching ant design? is there the same problem?

@aliaksandr-yanchuk
Copy link

To fix this behavior in material-ui dialogs set disableEnforceFocus to true in mui Dialog instance.

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

4 participants