In Excalidraw, text elements do not resize and wrap as expected. Vertical resizing of a text element is impossible and text does not auto-wrap. The only way to “wrap“ text is to manually add new lines.
-
dragging from corners and top/bottom sides results in scaling, as expected;
-
dragging from right/left sides results in a normal horizontal resizing, up until you try to make text element narrower then the line width, then it stops resizing with an error message: “Uncaught SyntaxError: raw bracket is not allowed in regular expression with unicode flag”.
Sometimes such resizing makes the text disappear, requiring page reload to fix. Sometimes horizontal resizing “locks“ mouse inputs in browser, persisting even after switching to other tabs.Same actions in a regular Excalidraw do not produce same problems.
Error message:
Uncaught SyntaxError: raw bracket is not allowed in regular expression with unicode flag
build https://<server>/media/assets/frontend/static/js/excalidrawEditor.<hash>.js:2
Issue is noticed on:
- SeafilePlus cloud
- Seafile On-premise Docker CE 13.0
Browsers:
- Google Chrome
- Zen Browser
Video showing the behavior in SeaDoc’s Excalidraw, and on the regular Excalidraw:
https/ /drive.google.com/file/d/1poCVdpCMgLg6_TGtDvLnJLJTn8UXrOS_/view?usp=sharing