collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
1 stars 2 forks source link

Inline link formatting #126

Closed MAX-786 closed 3 weeks ago

MAX-786 commented 4 weeks ago

Fixes #35

This PR should :

Toolbar fix

This PR also includes some fixes for the below edge cases: The toolbar is added before the frontend re-renders, causing it to disappear. The solution is to add the toolbar after the re-render using a timeout, but this introduces a slight visual delay

what is happening is that

so what we can do is that we add toolbar only when the data is sent to the frontend and we are sure that the html is re-rendered and then after this we add the toolbar so now it will not get removed, i did this by setting a 0 timeout so adding toolbar goes to another cycle but this adds up a visual delay of toolbar appearing