-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Roadmap #329
Comments
The compose function would be super-nice. The plugin naming has been bothering me for some time, but there is very few plugins that are only decorators, most of them still plug-in functionality (like dnd plugin). The only plugin that comes to my mind that really only has a decorator is block-alignment. |
Hi guys, |
yep, let's double-check. In any way I think some of the plugins need to be revisited in general before we do a 2.0 release. Some of them have been done by @bkniffler and I haven't investigate a lot yet. I probably start to write some docs for them to get a better understanding. If you want to we can sync sometime over the weekend to come up with a plan :) |
Hi @nikgraf I am keen to help out with updating docs for version 2 and can hopefully help out with a few of the plugin fixes mentioned here down the track. I have just set up a minimal example of using |
I've seen there are currently two PRs for a link plugin:
Which plugin is the one that is mentioned in the roadmap and will be merged eventually? As far as I understand the merge of #610 would make #470 obsolete. Would it be possible to merge one of those before 2.0? I've seen that also the video plugin got already merged despite it being scheduled for after 2.0. If there's something missing in those PRs, maybe I can help out. Btw. great work on the plugin architecture and the plugins! I really had fun building an editor with those recently. |
@amannn my goal is to clean up the existing plugins in the next 2-3 weeks and then release 2.0 Thanks for your kind words. Btw if you are interested to contribute & maintain. Let me know … |
Ok, let's wait until the 2.0 release then before merging a link plugin 👍. If there's something left to do in regards to the link plugin PRs and the authors of those don't have time, I could help out with them. |
@amannn sounds good, I just set myself a reminder to ping you in 2,5 weeks |
quick question, why is table plugin marked as legacy? where can I read about it? |
It is legacy because the approach of instantiating multiple draft editors is not in line with other Draft-js plugins and the architecture setup by Nik. Currently though from my experience it is the only way to create a flexible layout of editor blocks and I have been using a similar approach to achieve this. The only other option is using block wrappers but after a lot of trial and error I can say that this doesn't work. Also the alignment plugin just positions the block on the 1 line using a percentage width so is not really helpful. The issue is to do with the flat block structure in Draft.js which would need to change to a tree structure to accomodate this properly. The discussion on implementing this is here. So until that is merged in, if it gets merged in, the only approach is to use the slightly hacky idea of multiple editors, similar to the table plugin. |
Just an update from my end, I have been working with Last Draft and MegaDraft which has a slightly different plugin approach. I am now pushing all of the Last Draft plugins over to draft-js-plugin format as the MegaDraft team are, and hope to have this compatible with v2 of draft-js plugins in the next few weeks. Hopefully this will align the plugin approaches and add some more plugins to the community. |
@StevenIseki - thx for your work! very excited to see the convergence of plugins for a more unified ecoystem... just started working on a draft-js project a few days ago... would you recommend I start off with Last Draft, MegaDraft, or draft-js-plugins with future compatibility in mind? |
wow, didn't know MegaDraft is going to make it compatible to the plugin system. Who is doing that work? |
The MegaDraft team mentioned that they wanted to start work on it soon over here. I have started porting over Last Draft, and this work will likely overlap due to Last Draft borrowing a lot of MegaDraft's functionality. |
I finished migrating last draft editor over to draft-js-plugins, I am still working on tweaks to the UI. I set up some plugins to acheive this over here, these can be used like any other draft-js-plugins. A new sidebar-plugin, new toolbar-plugin, modal-plugin, embed-plugin, link-plugin, color-picker-plugin, emoji-picker-plugin and gif-picker-plugin. |
@StevenIseki just added them to the list of community plugins and tweeted about them. https://github.com/draft-js-plugins/draft-js-plugins#built-by-the-community Could you help me out adding descriptions here: https://github.com/nikgraf/awesome-draft-js#plugins-and-decorators-built-for-draftjs |
@nikgraf How can I add link ability to Inline-Toolbar ? |
@nikgraf: I'm doing the Megadraft integration with draft-js-plugins. Here is the issue: I'm using the Will there be a common signature to follow? |
this has a lot of great points I'm gonna close this for now, and we can reopen different issues if needed |
2.0
In this issue we can discuss & elaborate on plans for a 2.0 release. Feel free to add your ideas here and let me know if you want to pick up one of those tasks.
Discussion
draft-js-dnd-plugin-decorator
ordraft-js-dnd-decorator-plugin
? The names get quite long, but on the other hand these modules are not plugins. Thoughts?compose
functions (like in Redux) to combine decorators. The alternative is one decorator where you can activate/deactivate certain plugins.All Plugins
<noscript />
and replace with `nullpeerDepedencies
moved todepedencies
npm3
as requirement to package.jsonEditor
Inline Toolbar
Side Toolbar
Mentions
Immutable.Map
for the mentions list. This change would make it play nicer together withconvertFromRaw
. see Let mentions render with plain JS Object #326mentionTrigger
https://github.com/draft-js-plugins/draft-js-plugins/pull/320/files is a good idea or if we should simply recommend @mjrussell autocomplete plugin creatormentionComponent
Stickers
Immutable.Map
for the sticker list. This change would make it play nicer together withconvertFromRaw
. see Let mentions render with plain JS Object #326Alignment Plugin
Focus Plugin
Resizable Plugin
Drag'n'Drop Plugin
Docs
npm start
in the dev environment to see them).onSearchChange
,suggestions
,ariaProps
,callbacks
,theme
,store
,entityMutability
,positionSuggestions
on<div>
tag.After 2.0
All Plugins
Discussion
onChangeComplete
which doesn't care about a returned editorState and is just for easier dealing. This would be run after allonChange
functions see Plugin-supplied components cannot be placed above editor #311.File upload Drag'n'Drop Plugin
Link Plugin
Video Plugin
Stickers
Counter
Docs
Write a post on what makes a good plugin:
The text was updated successfully, but these errors were encountered: