in draft.js’s link example they use URL for link entities which is
what this lib was using as well, however I’ve come across some plugins
which use href instead, which seems like a resonable value as well.
Soooo I have added support for both values. If a user wants some other
way more custom value that doesn’t make sense I might suggest they
define their own BlockEntity and pass it in as an option (see the
README).
in draft.js’s link example they use
URL
for link entities which is what this lib was using as well, however I’ve come across some plugins which usehref
instead, which seems like a resonable value as well.Soooo I have added support for both values. If a user wants some other way more custom value that doesn’t make sense I might suggest they define their own BlockEntity and pass it in as an option (see the README).