You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: webcomponents/inline-editor/src/components.d.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,10 @@ export namespace Components {
86
86
* To hide the option to select a background-color
87
87
*/
88
88
"backgroundColor": boolean;
89
+
/**
90
+
* Use `document.execCommand` (= "native") to modify the document or, alternatively use the `custom` implementation
91
+
*/
92
+
"command": 'native'|'custom';
89
93
/**
90
94
* A comma separated list of containers where the inline editor should/could be use. Used in order to allow the component to detect some information like the current style or color
91
95
*/
@@ -319,6 +323,10 @@ declare namespace LocalJSX {
319
323
* To hide the option to select a background-color
320
324
*/
321
325
"backgroundColor"?: boolean;
326
+
/**
327
+
* Use `document.execCommand` (= "native") to modify the document or, alternatively use the `custom` implementation
328
+
*/
329
+
"command"?: 'native'|'custom';
322
330
/**
323
331
* A comma separated list of containers where the inline editor should/could be use. Used in order to allow the component to detect some information like the current style or color
| `attachTo` | -- | Could be use to attach the inline editor event listeners (mousedown, touchstart and keydown) to a specific element instead of the document | `HTMLElement` | `undefined` |
87
-
| `backgroundColor` | `background-color` | To hide the option to select a background-color | `boolean` | `true` |
88
-
| `containers` | `containers` | A comma separated list of containers where the inline editor should/could be use. Used in order to allow the component to detect some information like the current style or color | `string` | `'h1,h2,h3,h4,h5,h6,div'` |
89
-
| `customActions` | `custom-actions` | You might to display and add further actions to the component ? Use this property to provide a comma separated list of actions | `string` | `undefined` |
90
-
| `fontSize` | `font-size` | Actions to modify the selection font-size enabled? | `boolean` | `true` |
91
-
| `handleGlobalEvents` | `handle-global-events` | Handle the selection change "manually". See chapter "Usage within shadow dom" | `boolean` | `true` |
92
-
| `imgAnchor` | `img-anchor` | The type of element to attach the image toolbar | `string` | `'img'` |
93
-
| `imgEditable` | `img-editable` | Per default, the component will not consider images as editable. Turn this option to true to activate the edition of images | `boolean` | `false` |
94
-
| `imgPropertyCssFloat` | `img-property-css-float` | In case you would like to use a specific property to specify the float on your image | `string` | `'float'` |
95
-
| `imgPropertyWidth` | `img-property-width` | In case you would like to use a specific property to specify the width on your image | `string` | `'width'` |
96
-
| `list` | `list` | Actions to manipulate the selection as list enabled? | `boolean` | `true` |
97
-
| `mobile` | `mobile` | The mobile mode is automatically recognize, but just it case you would like to "force" it | `boolean` | `false` |
98
-
| `palette` | -- | In case you would like to define a custom list of colors for the palette of colors. See @deckdeckgo/color for the default list of colors | `DeckdeckgoPalette[]` | `DEFAULT_PALETTE` |
99
-
| `stickyDesktop` | `sticky-desktop` | Use a sticky footer toolbar on desktop | `boolean` | `false` |
100
-
| `stickyMobile` | `sticky-mobile` | Use a sticky footer toolbar on mobile. The sticky bar is positioned bottom except on iOS for which it will be positioned top | `boolean` | `false` |
| `attachTo` | -- | Could be use to attach the inline editor event listeners (mousedown, touchstart and keydown) to a specific element instead of the document | `HTMLElement` | `undefined` |
95
+
| `backgroundColor` | `background-color` | To hide the option to select a background-color | `boolean` | `true` |
96
+
| `command` | `command` | Use `document.execCommand` (= "native") to modify the document or, alternatively use the `custom` implementation | `"custom" \|"native"` | `'native'` |
97
+
| `containers` | `containers` | A comma separated list of containers where the inline editor should/could be use. Used in order to allow the component to detect some information like the current style or color | `string` | `'h1,h2,h3,h4,h5,h6,div'` |
98
+
| `customActions` | `custom-actions` | You might to display and add further actions to the component ? Use this property to provide a comma separated list of actions | `string` | `undefined` |
99
+
| `fontSize` | `font-size` | Actions to modify the selection font-size enabled? | `boolean` | `true` |
100
+
| `handleGlobalEvents` | `handle-global-events` | Handle the selection change "manually". See chapter "Usage within shadow dom" | `boolean` | `true` |
101
+
| `imgAnchor` | `img-anchor` | The type of element to attach the image toolbar | `string` | `'img'` |
102
+
| `imgEditable` | `img-editable` | Per default, the component will not consider images as editable. Turn this option to true to activate the edition of images | `boolean` | `false` |
103
+
| `imgPropertyCssFloat` | `img-property-css-float` | In case you would like to use a specific property to specify the float on your image | `string` | `'float'` |
104
+
| `imgPropertyWidth` | `img-property-width` | In case you would like to use a specific property to specify the width on your image | `string` | `'width'` |
105
+
| `list` | `list` | Actions to manipulate the selection as list enabled? | `boolean` | `true` |
106
+
| `mobile` | `mobile` | The mobile mode is automatically recognize, but just it case you would like to "force" it | `boolean` | `false` |
107
+
| `palette` | -- | In case you would like to define a custom list of colors for the palette of colors. See @deckdeckgo/color for the default list of colors | `DeckdeckgoPalette[]` | `DEFAULT_PALETTE` |
108
+
| `stickyDesktop` | `sticky-desktop` | Use a sticky footer toolbar on desktop | `boolean` | `false` |
109
+
| `stickyMobile` | `sticky-mobile` | Use a sticky footer toolbar on mobile. The sticky bar is positioned bottom except on iOS for which it will be positioned top | `boolean` | `false` |
0 commit comments