-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QMS: Update inline comments extensions (#3814)
* update documents inline comments extensions Signed-off-by: Anna No <anna.no@xored.com> * update qms documents inline comments Signed-off-by: Anna No <anna.no@xored.com> * qms: update document inline comments extensions Signed-off-by: Anna No <anna.no@xored.com> * qms: move highlight to prose mirror decorations Signed-off-by: Anna No <anna.no@xored.com> * fix formatting issues Signed-off-by: Anna No <anna.no@xored.com> * fix formatting issues Signed-off-by: Anna No <anna.no@xored.com> * fix formatting issues Signed-off-by: Anna No <anna.no@xored.com> * fix formatting issues Signed-off-by: Anna No <anna.no@xored.com> --------- Signed-off-by: Anna No <anna.no@xored.com>
- Loading branch information
Showing
10 changed files
with
280 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/text-editor/src/components/extension/inlinePopup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Extension } from '@tiptap/core' | ||
import BubbleMenu, { BubbleMenuOptions } from '@tiptap/extension-bubble-menu' | ||
|
||
export const InlinePopupExtension: Extension<BubbleMenuOptions> = BubbleMenu.extend({ | ||
addOptions () { | ||
return { | ||
...this.parent?.(), | ||
pluginKey: 'inline-popup', | ||
element: null, | ||
tippyOptions: { | ||
maxWidth: '38rem', | ||
appendTo: () => document.body | ||
} | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.