Common-Cursor is a library that better control the cursor in the editable HTML node.
see tests for usage examples.
git clone https://github.com/ohno/common-cursor.git
Install the dependencies:
pnpm install
Build the library:
pnpm build
Build the library in watch mode:
cd document
pnpm dev
pnpm config set registry https://registry.npmjs.org pnpm config set registry http://mirrors.cloud.tencent.com/npm/