@dile/editor
Advanced tools
Comparing version 2.4.1 to 2.4.2
{ | ||
"name": "@dile/editor", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Webcomponent to create a user editor interface, configured on various ways", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2f4e696db6cb74d33233b83b5da7ce79699c5632" | ||
"gitHead": "bddd214424a2b8a1d0a91d780bc77459a70508f2" | ||
} |
@@ -250,17 +250,6 @@ import { LitElement, html, css } from 'lit'; | ||
<section name="markdown"> | ||
<textarea | ||
id="eltextarea" | ||
.value="${this.value}" | ||
@input=${this.doTextareaKeypress} | ||
></textarea> | ||
${this.textareaTemplate} | ||
</section> | ||
<section class="editor" name="design"> | ||
<dile-editor-markdown | ||
id="editor" | ||
@dile-editor-change=${this.updateValue} | ||
._menuConfig=${this._menuConfig} | ||
@dile-editor-markdown-initialized=${this.setInitialized} | ||
.addicionalCommands=${this.addicionalCommands} | ||
language="${this.language}" | ||
></dile-editor-markdown> | ||
${this.editorMarkdownTemplate} | ||
</section> | ||
@@ -274,2 +263,25 @@ </dile-pages> | ||
get editorMarkdownTemplate() { | ||
return html` | ||
<dile-editor-markdown | ||
id="editor" | ||
@dile-editor-change=${this.updateValue} | ||
._menuConfig=${this._menuConfig} | ||
@dile-editor-markdown-initialized=${this.setInitialized} | ||
.addicionalCommands=${this.addicionalCommands} | ||
language="${this.language}" | ||
></dile-editor-markdown> | ||
` | ||
} | ||
get textareaTemplate() { | ||
return html` | ||
<textarea | ||
id="eltextarea" | ||
.value="${this.value}" | ||
@input=${this.doTextareaKeypress} | ||
></textarea> | ||
` | ||
} | ||
updateValue(e) { | ||
@@ -276,0 +288,0 @@ this.value = e.detail.content; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33003
1023