@dile/editor
Advanced tools
Comparing version 2.4.2 to 2.4.3
{ | ||
"name": "@dile/editor", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Webcomponent to create a user editor interface, configured on various ways", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "bddd214424a2b8a1d0a91d780bc77459a70508f2" | ||
"gitHead": "eb9a2765a85207c45fcc88825fd61030e65c56fb" | ||
} |
@@ -33,3 +33,3 @@ import { LitElement, css } from 'lit'; | ||
_menuConfig: { type: Object }, | ||
addicionalCommands: { type: Object }, | ||
additionalCommands: { type: Object }, | ||
}; | ||
@@ -75,3 +75,3 @@ } | ||
keymap(baseKeymap), | ||
menuPlugin(this._menuConfig, this.addicionalCommands, this.language), | ||
menuPlugin(this._menuConfig, this.additionalCommands, this.language), | ||
] | ||
@@ -78,0 +78,0 @@ }) |
@@ -54,3 +54,3 @@ import { LitElement, html, css } from 'lit'; | ||
menuConfig: { type: Object }, | ||
addicionalCommands: { type: Object }, | ||
additionalCommands: { type: Object }, | ||
}; | ||
@@ -61,3 +61,3 @@ } | ||
super(); | ||
this.addicionalCommands = {} | ||
this.additionalCommands = {} | ||
} | ||
@@ -70,5 +70,5 @@ | ||
firstUpdated() { | ||
this.toolbarItems = getToolbarItems(this.menuConfig, this.addicionalCommands.toolbarItems || []); | ||
this.undoItems = getUndoItems(this.menuConfig, this.addicionalCommands.undoItems || []); | ||
this.blockItems = getBlockItems(this.menuConfig, this.addicionalCommands.blockItems || []); | ||
this.toolbarItems = getToolbarItems(this.menuConfig, this.additionalCommands.toolbarItems || []); | ||
this.undoItems = getUndoItems(this.menuConfig, this.additionalCommands.undoItems || []); | ||
this.blockItems = getBlockItems(this.menuConfig, this.additionalCommands.blockItems || []); | ||
} | ||
@@ -75,0 +75,0 @@ |
@@ -175,3 +175,3 @@ import { LitElement, html, css } from 'lit'; | ||
addicionalCommands: { type: Object }, | ||
additionalCommands: { type: Object }, | ||
@@ -197,3 +197,3 @@ /** Menu config */ | ||
this._menuConfig = {...defaultToolbarConfig}; | ||
this.addicionalCommands = {}; | ||
this.additionalCommands = {}; | ||
this.internals = this.attachInternals(); | ||
@@ -271,3 +271,3 @@ } | ||
@dile-editor-markdown-initialized=${this.setInitialized} | ||
.addicionalCommands=${this.addicionalCommands} | ||
.additionalCommands=${this.additionalCommands} | ||
language="${this.language}" | ||
@@ -274,0 +274,0 @@ ></dile-editor-markdown> |
@@ -5,3 +5,3 @@ import { Plugin } from "prosemirror-state"; | ||
export const menuPlugin = (menuConfig, addicionalCommands, language) => new Plugin({ | ||
export const menuPlugin = (menuConfig, additionalCommands, language) => new Plugin({ | ||
view(editorView) { | ||
@@ -13,3 +13,3 @@ let toolbar; | ||
toolbar.editorView = editorView; | ||
toolbar.addicionalCommands = addicionalCommands; | ||
toolbar.additionalCommands = additionalCommands; | ||
toolbar.language = language; | ||
@@ -16,0 +16,0 @@ editorView.dom.parentNode.insertBefore(toolbar, editorView.dom); |