draft-js-markdown-shortcuts-plugin icon indicating copy to clipboard operation
draft-js-markdown-shortcuts-plugin copied to clipboard

Incompatibility with createLinkPlugin

Open xiaoyunyang opened this issue 7 years ago • 1 comments

I want to be able to use both markdown shortcuts plugin and draft-js-anchor-plugin but it's impossible to get them to both work in creating a link. I think the problem is with the name used for the state. For the markdown plugin, it's href. For the anchor plugin, it's url.

Can we make the necessary revisions to get the markdown plugin to be compatible with the anchor plugin? I think at least this file definitely needs to be changed.

If that can't be done, is there a way we can disable a markdown shortcut from createMarkdownShortcutsPlugin()?

xiaoyunyang avatar Aug 08 '18 06:08 xiaoyunyang

I think the problem is the component being rendered is only supplied with href and title, can the component still take other attributes? target, classes and etc.

Link for reference https://github.com/ngs/draft-js-markdown-shortcuts-plugin/blob/631f1863341ee57cd3cd93c54d06b364562254da/src/components/Link/index.js

vmc08 avatar Feb 28 '21 16:02 vmc08