Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change url to href in link attr map #50

Closed
wants to merge 3 commits into from
Closed

Conversation

f0rr0
Copy link

@f0rr0 f0rr0 commented Nov 13, 2016

See #49

Copy link
Owner

@sstur sstur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be a breaking change because older versions of Draft (or maybe it's due to draft-js-import-html) do use the url key in data for historical reasons. I'd be open to support both:

[ENTITY_TYPE.LINK]: {href: 'href', url: 'href', rel: 'rel', ...};

@f0rr0
Copy link
Author

f0rr0 commented Mar 23, 2017

@sstur done

@sstur
Copy link
Owner

sstur commented Mar 26, 2017

Thanks for your effort on this PR.

This PR has no tests, so I made the change and added a test and landed it in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants