-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I am using this plugin for adding AI integration in Tiptap editor.
Current enableSuggestChanges and disableSuggestChanges are not chainable. we need to dispatch these separately before making changes.
Or If we can enable track changes just for specific transaction.
I want to do something like this:
// in Prosemirror
chainCommands([
enableSuggestChanges(),
// document modifications
disableSuggestChanges(),
])
// in Tiptap
editor.chain().enableSuggestChanges()./* document modifications */.disableSuggestChanges().run()
// OR suggestion only for specific transaction
// in Prosemirror
tr.setMeta(suggestionPluginKey, { enable: true })
// document modifications
dispatch?.(tr)
// in Tiptap
editor.chain().setMeta(suggestionPluginKey, { enable: true })./* document modifications */.run()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels