-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add tiptap's subscript and superscript extansion to tiptap wysiwyg #2732
base: 3.x
Are you sure you want to change the base?
add tiptap's subscript and superscript extansion to tiptap wysiwyg #2732
Conversation
subscript: true, | ||
superscript: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will enable them by default on all Tiptap fields where the developer passes an empty array of options, which I don't think should be the case in a minor release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this was probably too much
'subscript', | ||
'superscript', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, if the developer does not specify their options in a field, they will end up with new buttons after updating Twill, which I consider as a "breaking" change. We should remove it from this default configuration for now. We might decide to add them back for the next major release.
"@tiptap/extension-subscript": "^2.11.5", | ||
"@tiptap/extension-superscript": "^2.11.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When new npm dependencies are added, the package.lock file needs to be pushed to the repository.
… and add package-lonk
# Conflicts: # package-lock.json
Changes request has been addressed. |
Add subscript or superscript content in TipTap wysiwyg
Subscript uses @tiptap/extension-subscript and wrap wysiwyg text within a
<sub />
tag.Superscript uses @tiptap/extension-superscript and wrap wysiwyg text within a
<sup />
tag.