@vaadin/rich-text-editor 23.2.0-dev.53560527d → 23.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +18 -13
- package/src/vaadin-rich-text-editor-icons.js +3 -3
- package/src/vaadin-rich-text-editor.d.ts +3 -3
- package/src/vaadin-rich-text-editor.js +2 -14
- package/web-types.json +110 -0
- package/web-types.lit.json +76 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ An input field web component for entering rich text.
|
|
|
4
4
|
|
|
5
5
|
> ℹ️ A commercial Vaadin [subscription](https://vaadin.com/pricing) is required to use Rich Text Editor in your project.
|
|
6
6
|
|
|
7
|
-
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/
|
|
7
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/rich-text-editor)
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@vaadin/rich-text-editor)
|
|
10
10
|
[](https://discord.gg/PHmkCKC)
|
|
@@ -13,7 +13,7 @@ An input field web component for entering rich text.
|
|
|
13
13
|
<vaadin-rich-text-editor></vaadin-rich-text-editor>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
[<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/rich-text-editor/screenshot.png" width="656" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/docs/latest/
|
|
16
|
+
[<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/rich-text-editor/screenshot.png" width="656" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/docs/latest/components/rich-text-editor)
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ import '@vaadin/rich-text-editor';
|
|
|
31
31
|
|
|
32
32
|
## Themes
|
|
33
33
|
|
|
34
|
-
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/
|
|
34
|
+
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
|
|
35
35
|
The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/rich-text-editor/vaadin-rich-text-editor.js) of the package uses the Lumo theme.
|
|
36
36
|
|
|
37
37
|
To use the Material theme, import the component from the `theme/material` folder:
|
|
@@ -54,7 +54,7 @@ import '@vaadin/rich-text-editor/src/vaadin-rich-text-editor.js';
|
|
|
54
54
|
|
|
55
55
|
## Contributing
|
|
56
56
|
|
|
57
|
-
Read the [contributing guide](https://vaadin.com/docs/latest/
|
|
57
|
+
Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
|
58
58
|
|
|
59
59
|
## License
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/rich-text-editor",
|
|
3
|
-
"version": "23.2.0
|
|
3
|
+
"version": "23.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"description": "vaadin-rich-text-editor",
|
|
8
|
-
"license": "
|
|
8
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"cvdlName": "vaadin-rich-text-editor",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -21,14 +21,16 @@
|
|
|
21
21
|
"module": "vaadin-rich-text-editor.js",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
24
|
-
"icons": "gulp icons"
|
|
24
|
+
"icons": "gulp icons --gulpfile gulpfile.cjs"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"src",
|
|
28
28
|
"theme",
|
|
29
29
|
"vaadin-*.d.ts",
|
|
30
30
|
"vaadin-*.js",
|
|
31
|
-
"vendor"
|
|
31
|
+
"vendor",
|
|
32
|
+
"web-types.json",
|
|
33
|
+
"web-types.lit.json"
|
|
32
34
|
],
|
|
33
35
|
"keywords": [
|
|
34
36
|
"Vaadin",
|
|
@@ -39,14 +41,13 @@
|
|
|
39
41
|
],
|
|
40
42
|
"dependencies": {
|
|
41
43
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/button": "23.2.0
|
|
43
|
-
"@vaadin/component-base": "23.2.0
|
|
44
|
-
"@vaadin/confirm-dialog": "23.2.0
|
|
45
|
-
"@vaadin/text-field": "23.2.0
|
|
46
|
-
"@vaadin/vaadin-
|
|
47
|
-
"@vaadin/vaadin-
|
|
48
|
-
"@vaadin/vaadin-
|
|
49
|
-
"@vaadin/vaadin-themable-mixin": "23.2.0-dev.53560527d"
|
|
44
|
+
"@vaadin/button": "^23.2.0",
|
|
45
|
+
"@vaadin/component-base": "^23.2.0",
|
|
46
|
+
"@vaadin/confirm-dialog": "^23.2.0",
|
|
47
|
+
"@vaadin/text-field": "^23.2.0",
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "^23.2.0",
|
|
49
|
+
"@vaadin/vaadin-material-styles": "^23.2.0",
|
|
50
|
+
"@vaadin/vaadin-themable-mixin": "^23.2.0"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -56,5 +57,9 @@
|
|
|
56
57
|
"gulp-iconfont": "^11.0.0",
|
|
57
58
|
"sinon": "^13.0.2"
|
|
58
59
|
},
|
|
59
|
-
"
|
|
60
|
+
"web-types": [
|
|
61
|
+
"web-types.json",
|
|
62
|
+
"web-types.lit.json"
|
|
63
|
+
],
|
|
64
|
+
"gitHead": "8b1f5941f26ac41ca038e75e24c8584e331bc7a8"
|
|
60
65
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const template = document.createElement('template');
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
template.innerHTML = `
|
|
11
11
|
<style>
|
|
12
12
|
@font-face {
|
|
13
13
|
font-family: 'vaadin-rte-icons';
|
|
@@ -31,7 +31,7 @@ $_documentContainer.innerHTML = `
|
|
|
31
31
|
</style>
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
|
-
document.head.appendChild(
|
|
34
|
+
document.head.appendChild(template.content);
|
|
35
35
|
|
|
36
36
|
export const iconsStyles = css`
|
|
37
37
|
[part~='toolbar-button-align-center']::before {
|
|
@@ -123,7 +123,7 @@ export interface RichTextEditorEventMap extends HTMLElementEventMap, RichTextEdi
|
|
|
123
123
|
* `toolbar-button-code-block` | The "code block" button
|
|
124
124
|
* `toolbar-button-clean` | The "clean formatting" button
|
|
125
125
|
*
|
|
126
|
-
* See [Styling Components](https://vaadin.com/docs/latest/
|
|
126
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.
|
|
127
127
|
*
|
|
128
128
|
* @fires {Event} change - Fired when the user commits a value change.
|
|
129
129
|
* @fires {CustomEvent} html-value-changed - Fired when the `htmlValue` property changes.
|
|
@@ -181,13 +181,13 @@ declare class RichTextEditor extends ElementMixin(ThemableMixin(HTMLElement)) {
|
|
|
181
181
|
addEventListener<K extends keyof RichTextEditorEventMap>(
|
|
182
182
|
type: K,
|
|
183
183
|
listener: (this: RichTextEditor, ev: RichTextEditorEventMap[K]) => void,
|
|
184
|
-
options?:
|
|
184
|
+
options?: AddEventListenerOptions | boolean,
|
|
185
185
|
): void;
|
|
186
186
|
|
|
187
187
|
removeEventListener<K extends keyof RichTextEditorEventMap>(
|
|
188
188
|
type: K,
|
|
189
189
|
listener: (this: RichTextEditor, ev: RichTextEditorEventMap[K]) => void,
|
|
190
|
-
options?:
|
|
190
|
+
options?: EventListenerOptions | boolean,
|
|
191
191
|
): void;
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import '@vaadin/button/src/vaadin-button.js';
|
|
7
7
|
import '@vaadin/confirm-dialog/src/vaadin-confirm-dialog.js';
|
|
8
8
|
import '@vaadin/text-field/src/vaadin-text-field.js';
|
|
9
|
-
import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
|
|
10
9
|
import '../vendor/vaadin-quill.js';
|
|
11
10
|
import './vaadin-rich-text-editor-toolbar-styles.js';
|
|
12
11
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
@@ -110,7 +109,7 @@ const TAB_KEY = 9;
|
|
|
110
109
|
* `toolbar-button-code-block` | The "code block" button
|
|
111
110
|
* `toolbar-button-clean` | The "clean formatting" button
|
|
112
111
|
*
|
|
113
|
-
* See [Styling Components](https://vaadin.com/docs/latest/
|
|
112
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.
|
|
114
113
|
*
|
|
115
114
|
* @fires {Event} change - Fired when the user commits a value change.
|
|
116
115
|
* @fires {CustomEvent} html-value-changed - Fired when the `htmlValue` property changes.
|
|
@@ -504,17 +503,6 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
504
503
|
return ['_valueChanged(value, _editor)', '_disabledChanged(disabled, readonly, _editor)'];
|
|
505
504
|
}
|
|
506
505
|
|
|
507
|
-
/** @protected */
|
|
508
|
-
static _finalizeClass() {
|
|
509
|
-
super._finalizeClass();
|
|
510
|
-
|
|
511
|
-
const devModeCallback = window.Vaadin.developmentModeCallback;
|
|
512
|
-
const licenseChecker = devModeCallback && devModeCallback['vaadin-license-checker'];
|
|
513
|
-
if (typeof licenseChecker === 'function') {
|
|
514
|
-
licenseChecker(RichTextEditor);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
506
|
/**
|
|
519
507
|
* @param {string} prop
|
|
520
508
|
* @param {?string} oldVal
|
|
@@ -569,7 +557,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
569
557
|
this.__patchToolbar();
|
|
570
558
|
this.__patchKeyboard();
|
|
571
559
|
|
|
572
|
-
/*
|
|
560
|
+
/* c8 ignore next 3 */
|
|
573
561
|
if (isFirefox) {
|
|
574
562
|
this.__patchFirefoxFocus();
|
|
575
563
|
}
|
package/web-types.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/web-types",
|
|
3
|
+
"name": "@vaadin/rich-text-editor",
|
|
4
|
+
"version": "23.2.0",
|
|
5
|
+
"description-markup": "markdown",
|
|
6
|
+
"contributions": {
|
|
7
|
+
"html": {
|
|
8
|
+
"elements": [
|
|
9
|
+
{
|
|
10
|
+
"name": "vaadin-rich-text-editor",
|
|
11
|
+
"description": "`<vaadin-rich-text-editor>` is a Web Component for rich text editing.\nIt provides a set of toolbar controls to apply formatting on the content,\nwhich is stored and can be accessed as HTML5 or JSON string.\n\n```\n<vaadin-rich-text-editor></vaadin-rich-text-editor>\n```\n\nVaadin Rich Text Editor focuses on the structure, not the styling of content.\nTherefore, the semantic HTML5 tags such as <h1>, <strong> and <ul> are used,\nand CSS usage is limited to most common cases, like horizontal text alignment.\n\n### Styling\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-------------|-------------|------------\n`disabled` | Set to a disabled text editor | :host\n`readonly` | Set to a readonly text editor | :host\n`on` | Set to a toolbar button applied to the selected text | toolbar-button\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-------------------------------------|----------------\n`content` | The content wrapper\n`toolbar` | The toolbar wrapper\n`toolbar-group` | The group for toolbar controls\n`toolbar-group-history` | The group for histroy controls\n`toolbar-group-emphasis` | The group for emphasis controls\n`toolbar-group-heading` | The group for heading controls\n`toolbar-group-glyph-transformation` | The group for glyph transformation controls\n`toolbar-group-group-list` | The group for group list controls\n`toolbar-group-alignment` | The group for alignment controls\n`toolbar-group-rich-text` | The group for rich text controls\n`toolbar-group-block` | The group for preformatted block controls\n`toolbar-group-format` | The group for format controls\n`toolbar-button` | The toolbar button (applies to all buttons)\n`toolbar-button-undo` | The \"undo\" button\n`toolbar-button-redo` | The \"redo\" button\n`toolbar-button-bold` | The \"bold\" button\n`toolbar-button-italic` | The \"italic\" button\n`toolbar-button-underline` | The \"underline\" button\n`toolbar-button-strike` | The \"strike-through\" button\n`toolbar-button-h1` | The \"header 1\" button\n`toolbar-button-h2` | The \"header 2\" button\n`toolbar-button-h3` | The \"header 3\" button\n`toolbar-button-subscript` | The \"subscript\" button\n`toolbar-button-superscript` | The \"superscript\" button\n`toolbar-button-list-ordered` | The \"ordered list\" button\n`toolbar-button-list-bullet` | The \"bullet list\" button\n`toolbar-button-align-left` | The \"left align\" button\n`toolbar-button-align-center` | The \"center align\" button\n`toolbar-button-align-right` | The \"right align\" button\n`toolbar-button-image` | The \"image\" button\n`toolbar-button-link` | The \"link\" button\n`toolbar-button-blockquote` | The \"blockquote\" button\n`toolbar-button-code-block` | The \"code block\" button\n`toolbar-button-clean` | The \"clean formatting\" button\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
12
|
+
"attributes": [
|
|
13
|
+
{
|
|
14
|
+
"name": "value",
|
|
15
|
+
"description": "Value is a list of the operations which describe change to the document.\nEach of those operations describe the change at the current index.\nThey can be an `insert`, `delete` or `retain`. The format is as follows:\n\n```js\n [\n { insert: 'Hello World' },\n { insert: '!', attributes: { bold: true }}\n ]\n```\n\nSee also https://github.com/quilljs/delta for detailed documentation.",
|
|
16
|
+
"value": {
|
|
17
|
+
"type": [
|
|
18
|
+
"string"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "disabled",
|
|
24
|
+
"description": "When true, the user can not modify, nor copy the editor content.",
|
|
25
|
+
"value": {
|
|
26
|
+
"type": [
|
|
27
|
+
"boolean"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "readonly",
|
|
33
|
+
"description": "When true, the user can not modify the editor content, but can copy it.",
|
|
34
|
+
"value": {
|
|
35
|
+
"type": [
|
|
36
|
+
"boolean"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "theme",
|
|
42
|
+
"description": "The theme variants to apply to the component.",
|
|
43
|
+
"value": {
|
|
44
|
+
"type": [
|
|
45
|
+
"string",
|
|
46
|
+
"null",
|
|
47
|
+
"undefined"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"js": {
|
|
53
|
+
"properties": [
|
|
54
|
+
{
|
|
55
|
+
"name": "value",
|
|
56
|
+
"description": "Value is a list of the operations which describe change to the document.\nEach of those operations describe the change at the current index.\nThey can be an `insert`, `delete` or `retain`. The format is as follows:\n\n```js\n [\n { insert: 'Hello World' },\n { insert: '!', attributes: { bold: true }}\n ]\n```\n\nSee also https://github.com/quilljs/delta for detailed documentation.",
|
|
57
|
+
"value": {
|
|
58
|
+
"type": [
|
|
59
|
+
"string"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "disabled",
|
|
65
|
+
"description": "When true, the user can not modify, nor copy the editor content.",
|
|
66
|
+
"value": {
|
|
67
|
+
"type": [
|
|
68
|
+
"boolean"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "readonly",
|
|
74
|
+
"description": "When true, the user can not modify the editor content, but can copy it.",
|
|
75
|
+
"value": {
|
|
76
|
+
"type": [
|
|
77
|
+
"boolean"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "i18n",
|
|
83
|
+
"description": "An object used to localize this component. The properties are used\ne.g. as the tooltips for the editor toolbar buttons.",
|
|
84
|
+
"value": {
|
|
85
|
+
"type": [
|
|
86
|
+
"RichTextEditorI18n"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"events": [
|
|
92
|
+
{
|
|
93
|
+
"name": "change",
|
|
94
|
+
"description": "Fired when the user commits a value change."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "value-changed",
|
|
98
|
+
"description": "Fired when the `value` property changes."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "html-value-changed",
|
|
102
|
+
"description": "Fired when the `htmlValue` property changes."
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/web-types",
|
|
3
|
+
"name": "@vaadin/rich-text-editor",
|
|
4
|
+
"version": "23.2.0",
|
|
5
|
+
"description-markup": "markdown",
|
|
6
|
+
"framework": "lit",
|
|
7
|
+
"framework-config": {
|
|
8
|
+
"enable-when": {
|
|
9
|
+
"node-packages": [
|
|
10
|
+
"lit"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"contributions": {
|
|
15
|
+
"html": {
|
|
16
|
+
"elements": [
|
|
17
|
+
{
|
|
18
|
+
"name": "vaadin-rich-text-editor",
|
|
19
|
+
"description": "`<vaadin-rich-text-editor>` is a Web Component for rich text editing.\nIt provides a set of toolbar controls to apply formatting on the content,\nwhich is stored and can be accessed as HTML5 or JSON string.\n\n```\n<vaadin-rich-text-editor></vaadin-rich-text-editor>\n```\n\nVaadin Rich Text Editor focuses on the structure, not the styling of content.\nTherefore, the semantic HTML5 tags such as <h1>, <strong> and <ul> are used,\nand CSS usage is limited to most common cases, like horizontal text alignment.\n\n### Styling\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-------------|-------------|------------\n`disabled` | Set to a disabled text editor | :host\n`readonly` | Set to a readonly text editor | :host\n`on` | Set to a toolbar button applied to the selected text | toolbar-button\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-------------------------------------|----------------\n`content` | The content wrapper\n`toolbar` | The toolbar wrapper\n`toolbar-group` | The group for toolbar controls\n`toolbar-group-history` | The group for histroy controls\n`toolbar-group-emphasis` | The group for emphasis controls\n`toolbar-group-heading` | The group for heading controls\n`toolbar-group-glyph-transformation` | The group for glyph transformation controls\n`toolbar-group-group-list` | The group for group list controls\n`toolbar-group-alignment` | The group for alignment controls\n`toolbar-group-rich-text` | The group for rich text controls\n`toolbar-group-block` | The group for preformatted block controls\n`toolbar-group-format` | The group for format controls\n`toolbar-button` | The toolbar button (applies to all buttons)\n`toolbar-button-undo` | The \"undo\" button\n`toolbar-button-redo` | The \"redo\" button\n`toolbar-button-bold` | The \"bold\" button\n`toolbar-button-italic` | The \"italic\" button\n`toolbar-button-underline` | The \"underline\" button\n`toolbar-button-strike` | The \"strike-through\" button\n`toolbar-button-h1` | The \"header 1\" button\n`toolbar-button-h2` | The \"header 2\" button\n`toolbar-button-h3` | The \"header 3\" button\n`toolbar-button-subscript` | The \"subscript\" button\n`toolbar-button-superscript` | The \"superscript\" button\n`toolbar-button-list-ordered` | The \"ordered list\" button\n`toolbar-button-list-bullet` | The \"bullet list\" button\n`toolbar-button-align-left` | The \"left align\" button\n`toolbar-button-align-center` | The \"center align\" button\n`toolbar-button-align-right` | The \"right align\" button\n`toolbar-button-image` | The \"image\" button\n`toolbar-button-link` | The \"link\" button\n`toolbar-button-blockquote` | The \"blockquote\" button\n`toolbar-button-code-block` | The \"code block\" button\n`toolbar-button-clean` | The \"clean formatting\" button\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
20
|
+
"extension": true,
|
|
21
|
+
"attributes": [
|
|
22
|
+
{
|
|
23
|
+
"name": "?disabled",
|
|
24
|
+
"description": "When true, the user can not modify, nor copy the editor content.",
|
|
25
|
+
"value": {
|
|
26
|
+
"kind": "expression"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "?readonly",
|
|
31
|
+
"description": "When true, the user can not modify the editor content, but can copy it.",
|
|
32
|
+
"value": {
|
|
33
|
+
"kind": "expression"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": ".value",
|
|
38
|
+
"description": "Value is a list of the operations which describe change to the document.\nEach of those operations describe the change at the current index.\nThey can be an `insert`, `delete` or `retain`. The format is as follows:\n\n```js\n [\n { insert: 'Hello World' },\n { insert: '!', attributes: { bold: true }}\n ]\n```\n\nSee also https://github.com/quilljs/delta for detailed documentation.",
|
|
39
|
+
"value": {
|
|
40
|
+
"kind": "expression"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": ".i18n",
|
|
45
|
+
"description": "An object used to localize this component. The properties are used\ne.g. as the tooltips for the editor toolbar buttons.",
|
|
46
|
+
"value": {
|
|
47
|
+
"kind": "expression"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "@change",
|
|
52
|
+
"description": "Fired when the user commits a value change.",
|
|
53
|
+
"value": {
|
|
54
|
+
"kind": "expression"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "@value-changed",
|
|
59
|
+
"description": "Fired when the `value` property changes.",
|
|
60
|
+
"value": {
|
|
61
|
+
"kind": "expression"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "@html-value-changed",
|
|
66
|
+
"description": "Fired when the `htmlValue` property changes.",
|
|
67
|
+
"value": {
|
|
68
|
+
"kind": "expression"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|