mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-05 18:55:28 +03:00
* fix(editor): keep the split-paste preference in the app state, not in localStorage The editor wrote the preference to the host's localStorage itself. It's an app state key now (splitPastedTextEnabled, kept in the browser as the other preferences are), for the host to store with the rest. Removes the EDITOR_LS_KEYS.PASTE_TEXT_AS_LINES key and the ownerWindow parameter of EditorLocalStorage, which nothing uses any more. * refactor(editor): rename splitPastedTextEnabled to splitOnPaste
@excalidraw/common
Install
npm install @excalidraw/common
If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
yarn add @excalidraw/common
With PNPM, similarly install the package with this command:
pnpm add @excalidraw/common