mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
b80b4c21f7fff55a7db610ae3bbffbd170ec956d
Ref https://github.com/webstudio-is/webstudio-designer/issues/487 Before lexical created paragraphs when press enter which we tried to visually represent as line break by removing margins and converted to line break to instances. This could lead to a few issues. 1. When paragraph block is inside `<a>` nothing can be typed in the beginning and in the end of paragraph 2. Paragraphs can be styled by users which can break text editor visually Here I overwritten default Enter command and insert line break instead of paragraph. To protect from external sources like paste from clipboard added transform to merge all paragraphs if move than one. We will still have one paragraph in the root with display: inline style. Though it will cause less damage to editor with user styles.
Webstudio Designer
Webstudio Designer is a NoCode Visual Tool inspired by Webflow. It is the place where you can build your site or app visually.
Contributing
Don't hesitate to reach out of you have questions around contributing to the project.
Community
Languages
TypeScript
98.9%
PLpgSQL
0.5%
CSS
0.3%
Shell
0.2%
JavaScript
0.1%