Skip to content

Commit

Permalink
fix: insert text
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 20, 2023
1 parent 0e576a6 commit e22fb07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MarkdownUi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ const markdownEditorMaxHeight = computed((): string => `${props.editorMaxHeight}
max-width: 100%;
outline: none;
padding: var(--kui-space-40, $kui-space-40) var(--kui-space-50, $kui-space-50);
resize: vertical;
resize: none;
text-wrap: wrap;
transition: box-shadow 0.2s ease-in-out;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useMarkdownActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function useMarkdownActions(
}

// If no element or wrapper, exit early
if (!textarea || !wrapper || document.activeElement !== textarea) {
if (!textarea || !wrapper) {
return
}

Expand Down
1 change: 1 addition & 0 deletions src/composables/useMarkdownIt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function useMarkdownIt(theme: 'light' | 'dark' = 'light') {
.use(superscript)
.use(tasklists, {
label: true,
enabled: false, // Not enabled since checking the box doesn't update the markdown
})

// disable converting email to link
Expand Down

0 comments on commit e22fb07

Please sign in to comment.