Skip to content

Commit

Permalink
fix: solve the problem of the tag input becoming a title after the # …
Browse files Browse the repository at this point in the history
…symbol (#75)

* fix: solve the problem of the tag input becoming a title after the # symbol

* fix: solve the problem of the tag input becoming a title after the # symbol

* upgrade Halo dependency to 2.12.0

* optimize the import
  • Loading branch information
LIlGG committed May 6, 2024
1 parent 5b24556 commit a0436e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/src/components/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
ExtensionDropcursor,
ExtensionGapcursor,
ExtensionHardBreak,
ExtensionHeading,
ExtensionHistory,
ExtensionHorizontalRule,
ExtensionItalic,
Expand Down Expand Up @@ -42,6 +41,7 @@ import {
ExtensionTrailingNode,
useEditor,
ExtensionListKeymap,
ExtensionParagraph,
} from "@halo-dev/richtext-editor";
import { watch } from "vue";
import { TagsExtension } from "@/extensions/tags";
Expand Down Expand Up @@ -69,6 +69,7 @@ const emit = defineEmits<{
const editor = useEditor({
content: props.raw,
extensions: [
ExtensionParagraph,
ExtensionBlockquote,
ExtensionBold,
ExtensionBulletList,
Expand All @@ -81,7 +82,6 @@ const editor = useEditor({
}),
ExtensionGapcursor,
ExtensionHardBreak,
ExtensionHeading,
ExtensionHistory,
ExtensionHorizontalRule,
ExtensionItalic,
Expand Down

0 comments on commit a0436e3

Please sign in to comment.