delta
delta copied to clipboard
Hello quill team: I am developing an editor with the delta library. It seems that the version on NPM is a common.js version. (The code are under `dist/` folder) I...
Raising this here, although it's unclear if this is an issue with delta or quill itself. #### Problem The delta value doesn't seem to have the right align attribute. For...
``` ▲ [WARNING] Module 'quill-delta' used by 'node_modules/quill/core.js' is not ESM CommonJS or AMD dependencies can cause optimization bailouts. For more information see: https://angular.io/guide/build#configuring-commonjs-dependencies ```
To create a list of delta formatted documents or to create an email from the content of an delta formatted document the document need to be converted to html. There...
Update to use a matrix for node testing
Update actions due to EOL node. Happy to look at adding dependabot. Also I will raise a PR adding a matrix to test against newer node versions.
```js let delta = [ { attributes: { type: "bullet-list-container", }, children: [ { insert: "Child 1" }, { insert: "Child 2" }, { insert: "Child 3", attributes: { type:...
``` const beforeA = {"ops":[{"insert":"新"},{"insert":{"DuoYinEmbed":{"character":"鲜","pinyinList":["xian1","xian3"]}}},{"insert":{"DuoYinEmbed":{"character":"的","pinyinList":["de5","di4","di2"]}}}]} const afterA = {"ops":[{"insert":"新"},{"insert":{"PreEmbed":{"text":"鲜","tagTxt":"xian1","ssml":{"tag":"phoneme","prop":"ph","value":"xian1"},"curBtnKey":"duoyin","ssmlValue":"xian1"}}},{"insert":{"DuoYinEmbed":{"character":"鲜","pinyinList":["xian1","xian3"]}}},{"insert":{"EndTagEmbed":{"curBtnKey":"duoyin"}}}]} ``` ``` Object.stringify(new Delta(afterA).diff(new Delta(beforeA)) // output==> {"ops":[{"retain":1},{"insert":{"DuoYinEmbed":{"character":"鲜","pinyinList":["xian1","xian3"]}}},{"insert":{"DuoYinEmbed":{"character":"的","pinyinList":["de5","di4","di2"]}}},{"delete":3}]} ``` there is no PreEmbed and endTagEmbed 。is it right?
# Build tools simpification - Use vite for bundling cjs and esm ouput - Use vitest for testing & coverage report - TS is supported out of the box so...
The [`AttributeMap`](https://github.com/quilljs/delta/blob/5ffb853d645aa5b4c93e42aa52697e2824afc869/src/AttributeMap.ts#L4-L6) interface currently looks like this: ``` interface AttributeMap { [key: string]: unknown; } ``` While this is technically correct, it can be a bit of a pain to...