monsieurbiz / SyliusRichEditorPlugin

This plugin add a rich editor on fields to be able to drag and drop elements and edit it.
MIT License
66 stars 38 forks source link

Add toolbox on top of each richeditor widget #212

Closed kgonella closed 4 months ago

kgonella commented 7 months ago

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

kgonella commented 6 months ago

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. I have tried under Firefox / Chrome on Ubuntu.

kgonella commented 6 months ago

Hello @maximehuran, any news ?

maximehuran commented 6 months ago

Hi @kgonella !

I am on Firefox on Mac. I will try again to check if the issue still exist

maximehuran commented 5 months ago

I reproduced the issue on Firefox and Chrome :

https://github.com/monsieurbiz/SyliusRichEditorPlugin/assets/11380627/1a1f93da-4876-4594-a035-8f7c8e87287e

kgonella commented 5 months ago

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.

maximehuran commented 4 months ago

Hi @kgonella 👋

I rebased your PR since the last changes on master. Can you check everything seems ok for you ? Do you think it is possible to disable the button Paste all if nothing in the clipboard ?

Test fails because of two issues with Sylius :

maximehuran commented 4 months ago

Thank you @kgonella 🚀