editor options
This commit is contained in:
committed by
Jacob Overgaard
parent
58a6d41dc7
commit
e165aecd6c
@@ -8,6 +8,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
* @element umb-input-markdown
|
||||
* @fires change - when the value of the input changes
|
||||
*/
|
||||
|
||||
@customElement('umb-input-markdown')
|
||||
export class UmbInputMarkdownElement extends FormControlMixin(UmbLitElement) {
|
||||
protected getFormElement() {
|
||||
@@ -31,6 +32,11 @@ export class UmbInputMarkdownElement extends FormControlMixin(UmbLitElement) {
|
||||
async #loadCodeEditor() {
|
||||
try {
|
||||
await loadCodeEditor();
|
||||
this._codeEditor?.editor?.updateOptions({
|
||||
lineNumbers: false,
|
||||
minimap: false,
|
||||
folding: false,
|
||||
});
|
||||
this.#isCodeEditorReady.next(true);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@@ -10,8 +10,4 @@ const meta: Meta<UmbInputMarkdownElement> = {
|
||||
export default meta;
|
||||
type Story = StoryObj<UmbInputMarkdownElement>;
|
||||
|
||||
export const Overview: Story = {
|
||||
args: {
|
||||
value: 'markdown',
|
||||
},
|
||||
};
|
||||
export const Overview: Story = {};
|
||||
|
||||
Reference in New Issue
Block a user