-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add toolbox on top of each richeditor widget #212
Add toolbox on top of each richeditor widget #212
Conversation
e122274
to
b60c151
Compare
- Trashes all elements - Overwrite all elements
392081f
to
2db72ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an issue when I try to remove all elements.
Enregistrement.de.l.ecran.2024-03-11.a.09.16.12.mov
It's removed but after it appears again.
Hello @maximehuran, thanks for the review. Can you give me some context, I have tried to do the same test as you and I can't reproduce the bug. |
Hello @maximehuran, any news ? |
Hi @kgonella ! I am on Firefox on Mac. |
2db72ca
to
ef2688e
Compare
I reproduced the issue on Firefox and Chrome : Enregistrement.de.l.ecran.2024-04-12.a.17.52.56.mov
|
Ok I fixedd the issue. As the modal used was the same on multiple calls, the "click' events were stacked and called at the same time. As we can remove event listener easily in javascript, the best way I found was to clone the node and remove the old one. |
- Trashes all elements - Overwrite all elements
a98932a
to
a93b65e
Compare
Hi @kgonella 👋 I rebased your PR since the last changes on Test fails because of two issues with Sylius :
|
…all-contents' into feature/copy-paste-all-contents # Conflicts: # assets/js/app.js # src/Resources/public/css/rich-editor-css.css # src/Resources/public/js/rich-editor-js.js # src/Resources/views/Admin/app.html.twig
Thank you @kgonella 🚀 |
This PR is a proposal to address the issue #93
First commit is only a POC for now to open a discussion on how to implement it.
What is missing :
TODO
Paste all
if nothing in the clipboard ?