We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8e530 commit b789eb0Copy full SHA for b789eb0
components/monaco-editor/monaco-editor.js
@@ -30,12 +30,12 @@ export default class MonacoEditor extends HTMLElement {
30
31
require(['vs/editor/editor.main'], () => {
32
this.#editor = monaco.editor.create(this.shadowRoot.querySelector("#editor"), {
33
- value: this.textContent,
+ value: this.textContent.trim(),
34
language: this.language,
35
theme: this.theme,
36
automaticLayout: true,
37
});
38
- });
+ });
39
}
40
};
41
0 commit comments