storyblok
storyblok copied to clipboard
Richtext Editor Blocks Misbehaviours
The issue occurs while working with: (check one with "x")
- [x] app.storyblok.com (CMS - Interface)
- [ ] api.storyblok.com (CMS - Content Delivery API)
- [ ] mapi.storyblok.com (CMS - Management API)
- [ ] capi.storyblok.com (Commerce - API)
- [ ] Commerce - Interface
- [ ] Other:
Current behavior: Currently if you insert blocks there are a few weird bugs that hinder the richtext field to be as great as it could be.
- If you accidentally backspace a whitespace too much and therefore delete the block that was there, there is no way to get it back again... its just gone, no Strg+z, nothing.
- if you want to move the block around and place it above... it somehow just vanishes
- if you cut or copy the component and try to insert it again - just the technical name of the component gets inserted again...
- if the field is translatable and you copy the content from the main language and insert it into the translated language, the component blocks lose all their data and info which components they are
- you cant put the block inside the same paragraph as text, as inserting a block just ends the text paragraph
Expected behavior:
- block should not just as easily vanish and should be restorable... because if you configure that block extensively and then accidentally remove it with a backspace all your work is just gone
- blocks should be freely movable between other content per drag and drop without miracle vanishes ;)
- you should be able to copy and cut component blocks and also insert them whererer you want otherwise the cut and copy functionality which is awesome is totally obsolete there
- translation of the content should be possible to copy paste content inside without losing component block information
- one should be able to put blocks inside the same paragraphs as text, so stuff like inline blocks like your own image component blocks can be achieved -> which would lead the editor to perfection! :)
Furthermore it would be nice to have the possibility to maybe choose where you want a paragraph to begin or end.
And maybe stuff like that could also be possible if your could put a button in the toolbar to switch between a visual and json view where you can also edit the json view there :) But the visual way first would be preferred anyway.. hehe
Steps to reproduce: described behaviour is easily reproducable by using the rich text editor
First of all, thx for a lot of info.
if you cut or copy the component and try to insert it again - just the technical name of the component gets inserted again...
this is already mentioned in https://github.com/storyblok/storyblok/issues/346 and https://github.com/storyblok/storyblok/issues/251 - check the second one. We are still trying to find a solution, but no success right now :(.
In general, we are open to suggestions. We used https://prosemirror.net/ as the RT editor and if you can help or improve this part we are happy to include it.
I stumbled upon another error in addition to the ones... when you have the rich text field translatable and you got text inside and components, copy the wholel content from one language to the other, everything beside the component blocks is copied.... which is probably hell if you have multiple languages :(
Hey, any progress on that topic? Today i also run in some of the mentioned issues.
Would be great to know if there would be any solutions coming up in next time.
Thanks Chris