Browse Source

Update for docs

pull/4591/head v0.20.1
Artur Arseniev 4 years ago
parent
commit
143414408e
  1. 2
      docs/api.js
  2. 2
      docs/api/editor.md
  3. 2
      docs/api/panels.md
  4. 2
      src/dom_components/model/Component.js
  5. 1
      src/panels/index.ts

2
docs/api.js

@ -19,7 +19,7 @@ async function generateDocs () {
['commands/index.js', 'commands.md'],
['dom_components/index.ts', 'components.md'],
['dom_components/model/Component.js', 'component.md'],
['panels/index.js', 'panels.md'],
['panels/index.ts', 'panels.md'],
['style_manager/index.js', 'style_manager.md'],
['style_manager/model/Sector.js', 'sector.md'],
['style_manager/model/Property.js', 'property.md'],

2
docs/api/editor.md

@ -725,7 +725,7 @@ const strHtml = editor.html`Escaped ${unsafeStr} unescaped $${safeStr}`;
Returns **[String][16]**
[1]: https://github.com/artf/grapesjs/blob/master/src/editor/config/config.js
[1]: https://github.com/artf/grapesjs/blob/master/src/editor/config/config.ts
[2]: /api/components.html

2
docs/api/panels.md

@ -143,7 +143,7 @@ Remove button from the panel
### Parameters
* `panelId` **[String][12]** Panel's ID
* `button`
* `button` **any**
* `buttonId` **[String][12]** Button's ID
### Examples

2
src/dom_components/model/Component.js

@ -1298,6 +1298,7 @@ export default class Component extends StyleableModel {
/**
* Override original clone method
* @private
*/
clone(opt = {}) {
const em = this.em;
@ -1529,6 +1530,7 @@ export default class Component extends StyleableModel {
* Return a shallow copy of the model's attributes for JSON
* stringification.
* @return {Object}
* @private
*/
toJSON(opts = {}) {
const obj = Model.prototype.toJSON.call(this, opts);

1
src/panels/index.ts

@ -191,6 +191,7 @@ export default class PanelManager extends Module<typeof defaults> {
/**
* Render panels and buttons
* @return {HTMLElement}
* @private
*/
render() {
this.PanelsViewObj && this.PanelsViewObj.remove();

Loading…
Cancel
Save