correctly apply syntax highlighting
This commit is contained in:
parent
33769c8d1e
commit
e595bbbea8
2 changed files with 4 additions and 4 deletions
6
dist/code-editor.mjs
vendored
6
dist/code-editor.mjs
vendored
|
@ -37171,7 +37171,6 @@ class CodeEditorElement extends HTMLElement {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this.language = this.getAttribute('language') || '';
|
||||
this.attachShadow({mode: 'open'});
|
||||
}
|
||||
|
||||
|
@ -37182,9 +37181,10 @@ class CodeEditorElement extends HTMLElement {
|
|||
init_editor() {
|
||||
const code = this.textContent;
|
||||
const code_tag = this.shadowRoot;
|
||||
|
||||
const language = this.getAttribute('language') || '';
|
||||
|
||||
this.codeMirror = codemirror_editor(
|
||||
this.language,
|
||||
language,
|
||||
{
|
||||
doc: code,
|
||||
parent: code_tag,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue