|
|
|
@ -151,6 +151,7 @@ Returns CSS built inside canvas |
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `opts` **[Object][3]** Options (optional, default `{}`) |
|
|
|
- `opts.avoidProtected` **[Boolean][4]** Don't include protected CSS (optional, default `false`) |
|
|
|
|
|
|
|
Returns **[string][2]** CSS string |
|
|
|
|
|
|
|
@ -178,7 +179,7 @@ Set components inside editor's canvas. This method overrides actual components |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `components` **([Array][4]<[Object][3]> | [Object][3] \| [string][2])** HTML string or components model |
|
|
|
- `components` **([Array][5]<[Object][3]> | [Object][3] \| [string][2])** HTML string or components model |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -200,9 +201,9 @@ Add components |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `components` **([Array][4]<[Object][3]> | [Object][3] \| [string][2])** HTML string or components model |
|
|
|
- `components` **([Array][5]<[Object][3]> | [Object][3] \| [string][2])** HTML string or components model |
|
|
|
- `opts` **[Object][3]** Options |
|
|
|
- `opts.avoidUpdateStyle` **[Boolean][5]** If the HTML string contains styles, |
|
|
|
- `opts.avoidUpdateStyle` **[Boolean][4]** If the HTML string contains styles, |
|
|
|
by default, they will be created and, if already exist, updated. When this option |
|
|
|
is true, styles already created will not be updated. (optional, default `false`) |
|
|
|
|
|
|
|
@ -218,7 +219,7 @@ editor.addComponents({ |
|
|
|
}); |
|
|
|
``` |
|
|
|
|
|
|
|
Returns **[Array][4]<Component>** |
|
|
|
Returns **[Array][5]<Component>** |
|
|
|
|
|
|
|
## getStyle |
|
|
|
|
|
|
|
@ -232,7 +233,7 @@ Set style inside editor's canvas. This method overrides actual style |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `style` **([Array][4]<[Object][3]> | [Object][3] \| [string][2])** CSS string or style model |
|
|
|
- `style` **([Array][5]<[Object][3]> | [Object][3] \| [string][2])** CSS string or style model |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -257,7 +258,7 @@ Returns **Model** |
|
|
|
|
|
|
|
Returns an array of all selected components |
|
|
|
|
|
|
|
Returns **[Array][4]** |
|
|
|
Returns **[Array][5]** |
|
|
|
|
|
|
|
## getSelectedToStyle |
|
|
|
|
|
|
|
@ -277,7 +278,7 @@ Select a component |
|
|
|
|
|
|
|
- `el` **(Component | [HTMLElement][6])** Component to select |
|
|
|
- `opts` **[Object][3]?** Options |
|
|
|
- `opts.scroll` **[Boolean][5]?** Scroll canvas to the selected element |
|
|
|
- `opts.scroll` **[Boolean][4]?** Scroll canvas to the selected element |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -296,7 +297,7 @@ Add component to selection |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][4])** Component to select |
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][5])** Component to select |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -312,7 +313,7 @@ Remove component from selection |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][4])** Component to select |
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][5])** Component to select |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -328,7 +329,7 @@ Toggle component selection |
|
|
|
|
|
|
|
### Parameters |
|
|
|
|
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][4])** Component to select |
|
|
|
- `el` **(Component | [HTMLElement][6] \| [Array][5])** Component to select |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -596,9 +597,9 @@ Returns **[HTMLElement][6]** |
|
|
|
|
|
|
|
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object |
|
|
|
|
|
|
|
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array |
|
|
|
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean |
|
|
|
|
|
|
|
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean |
|
|
|
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array |
|
|
|
|
|
|
|
[6]: https://developer.mozilla.org/docs/Web/HTML/Element |
|
|
|
|
|
|
|
|