BUG: layers text does not center after creating a new line
Question
Version: current?
You can get the version by typing grapesjs.version into the console
Are you able to reproduce the bug from the demo? [ ] Yes [ x] No // to be fair never tried in the demo
What is the expected behavior? when editing the layers text and adding a new line then backspacing i would expect the edited text to be recentered
Describe the bug detailed the text does not recenter but is raised (please see attatched image)
What is the current behavior? text is raised above the center after pressing enter to start a new line and then backspacing out of the line. however completely clearing all text and the retyping does recenter the text.
Are you able to attach screenshots, screencasts or a live demo?
[ x] Yes (attach)
[ ] No
cce9b8ed74f8.png)
also attatched is a second image of something which i dont know how to fix. but the toolbar stays in position when resizing the canvas container (not the one grapesjs provides but my own i use for positioning). how can i prevent this from happening? This also happens with the tooltip that says the name of the object when hovering and the outline when hovering. it does not reset

Answers (2)
Ok, I'll push a fix for the editing of layers name, probably it doesn't make sense having new lines enabled there (I'll make stop the editing on Enter/Esc).
For the second issue, If you're using something yours to resize the canvas, probably you should call editor.refresh() to adjust the toolbar
yeah I didn't realize editor.refresh() was a thing until after. otherwise thanks. awesome project
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3063
BUG: Block Highlight Display Bug
Version: 0.6.18 You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo? [ ] Ye...
Issue #3352
BUG: Default Content is getting Inserted while using setComponents if Tag Body is empty
Version: Latest You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[X] Yes...
Issue #3005
BUG: Layer manager appendTo is duplicating the layers every time grapesjs is init
Version: 0.16.18 and up (The issue was introduced somewhere after 0.15.3, not sure when) Are you able to reproduce the bug from the demo? [...
Issue #3731
BUG: Text element not able to be selected twice after extended with events
Version: 0.17.25 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? Update a existing component o...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.