HardBreak.vue 427 B

1234567891011121314151617
  1. <script setup lang="ts">
  2. import HardBreak, { HardBreakOptions } from "@tiptap/extension-hard-break";
  3. import { PropType } from "vue";
  4. import { injectExtension } from "../utils/common";
  5. const props = defineProps({
  6. options: {
  7. type: Object as PropType<Partial<HardBreakOptions>>,
  8. required: false,
  9. },
  10. });
  11. injectExtension(HardBreak.configure(props.options));
  12. </script>
  13. <template></template>
  14. <style scoped></style>