convertUrlToLinkPreviewBlockCommand top-level property
CommandShortcutEvent
convertUrlToLinkPreviewBlockCommand
final
try to convert the pasted url to a link preview block, only works if the selected block is a paragraph block and the url is valid
- support
- desktop
- mobile
- web
Implementation
final CommandShortcutEvent convertUrlToLinkPreviewBlockCommand =
CommandShortcutEvent(
key: 'convert url to link preview block',
getDescription: () => 'Convert the pasted url to a link preview block',
command: 'ctrl+v',
macOSCommand: 'cmd+v',
handler: _convertUrlToLinkPreviewBlockCommandHandler,
);