question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[draft-js-linkify-plugin] - Parameter component not working

See original GitHub issue

Parameter 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
juliankrispelcommented, Sep 26, 2017

@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

0reactions
davidsonsnscommented, Sep 22, 2017

I created this project https://codesandbox.io/s/pyoy0on510

if it is really a bug, I will try to collaborate with the repo, tks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found