[draft-js-linkify-plugin] - Parameter component not working
See original GitHub issueParameter component
not working in Linkify Plugin
In node_modules this is so
var linkPlugin = function linkPlugin() {
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
// Styles are overwritten instead of merged as merging causes a lot of confusion.
//
// Why? Because when merging a developer needs to know all of the underlying
// styles which needs a deep dive into the code. Merging also makes it prone to
// errors when upgrading as basically every styling change would become a major
// breaking change. 1px of an increased padding can break a whole layout.
var theme = config.theme ? config.theme : defaultTheme;
var target = config.target ? config.target : '_self';
return {
decorators: [{
strategy: _linkStrategy2.default,
component: (0, _decorateComponentWithProps2.default)(_Link2.default, { theme: theme, target: target })
}]
};
};
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to use the draft-js-linkify-plugin function in draft-js ... - Snyk
To help you get started, we've selected a few draft-js-linkify-plugin examples, based on popular ways it is used in public projects.
Read more >Draft JS linkify/mentions plugin on convertToRaw removes ...
Mentions works fine for convertToRaw, but draftToHtml not working here as its not supported. I will have to manipulate the Raw data to...
Read more >Linkify - DraftJS Plugins - High quality plugins with great UX
Restart Webpack. Configuration Parameters. themeObject of CSS classes with the following keys. link: ...
Read more >Draft js decorator not working with plugins - Gaurav Sobti
When I use CompositeDecorator with draft js plugins like mention, linkify, my decorator gets overridden and it doesn't work.
Read more >Editor Component - Draft.js
If this value is not set, text alignment will be based on the characters within the editor, on a per-block basis. textDirectionality #....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@davidsonsns apparently with that version it doesn’t work 😕 - try
draft-js-linkify-plugin@2.0.0-rc8
It seems to work in this forked code sandbox with the updated dependency, so I’m closing this issue
I created this project https://codesandbox.io/s/pyoy0on510
if it is really a bug, I will try to collaborate with the repo, tks