Releases: ueberdosis/tiptap
Releases · ueberdosis/tiptap
[email protected]
update dependencies
[email protected]
[email protected]
update dependencies
[email protected]
[email protected]
update dependencies
[email protected]
[email protected]
update dependencies
[email protected]
[email protected]
NEW
- add table extension (#120)
[email protected]
New
- added
pasteRules
(#88). Now you can define some rules for transforming pasted text. For example this is helpful for linkify your text. This pasteRule is defined in the defaultLink
mark.
import { Mark } from 'tiptap'
import { pasteRule } from 'tiptap-commands'
export default class Link extends Mark {
pasteRules({ type }) {
return [
pasteRule(
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g,
type,
url => ({ href: url }),
),
]
}
}