-
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
Need New Maintainers #1407
Comments
hey @mckenzieja, absolutely happy to give new maintainers access. There are 2 concerns from my side:
In order to move fast quickly, but avoid any issues I propose to add at least 3 people as maintainers and any PR that receives at least 2 approvals from these 3 will be merge. What do you think? Are you interested to be a maintainer? |
I 100% agree. The repository needs new maintainers. I updated the readme now to reflect that. For full transparency: I have been looking for maintainers for a while and have had some promising involvement throughout that time but ultimately I haven't found someone who wanted to take over full maintenance and have not found the time personally to keep up involvement since my professional life has been taking me elsewhere. Off the top of my head the first thing I can do at this point is to make this clear in the main readme, that the repository is actively looking for maintainers. I've done that now. If there's anything else I can do to help with this please lmk I'd be happy to. Looking forward to people getting involved, here's hoping 🙏 |
Developers like me are using DraftJs because of this plugins concept. Please keep it alive. Thanks |
I just rewrote the whole plugin This is some funny timing lol. Here's some more info:
And now a quick rundown of the example plugins I created:
I'm gonna be brief with the rest of them because I just realized that these have apparently been the most productive couple of days of my life and there's just too much stuff.
I got a bunch more things that I'm still experimenting with. All of the things I mentioned above are already working just fine in my editor project. As you see, I've taken a particular approach to this plugin system. I tried to make it as modular, declarative, composable and extensible as possible. It is still quite easy to use if you're either a plugin developer or a plugin user, but it allows for so much more freedom and it is updated with the state-of-the-art React hooks patterns. I plan on finishing the implementation and making some high quality plugins (prioritizing the ones I need for my editor). I'll also test it with the plugins contained in this repo to make sure it is retro-compatible, and I'll try to update some of them to test if my store implementation translates is a good idea or if I need to think things over. Here's the entire const countWords = string => string.split(/\S+/).length - 1
export default ({ onWordCountChange }) => ({
initialStore: {
lastCount: null
},
onContentChange: function (editorState, pluginFunctions) {
const store = pluginFunctions.getStore()
const count = countWords(editorState.getCurrentContent().getPlainText(''))
if (count !== store.get('lastCount')) {
store.set('lastCount', count)
onWordCountChange(count)
}
},
options: {
onContentChangeDebounceWait: 150,
contentChangeOnInit: true,
store: true
}
}) And here's a (very) simplified example of the theme module usage:
import { makeMuiTheme } from 'draft-js-plugins'
const blockStyles = theme => ({
paragraph: {
marginTop: 8,
fontSize: 16
},
h1: {
fontSize: 32
},
h2: {
fontSize: 26,
marginBottom: 12
},
h3: {
fontSize: 22,
marginBottom: 10
},
// TODO: create h4-6 styles
// base blockquote style
blockquote: {
paddingLeft: 26,
paddingRight: 16,
backgroundColor:
theme.palette.type === 'dark'
? 'rgba(255, 255, 255, 0.08)'
: 'rgba(0, 0, 0, 0.08)',
borderRadius: 3,
margin: 0
},
blockquoteDecoration: {
backgroundColor:
theme.palette.type === 'dark'
? 'rgba(255, 255, 255, 0.4)'
: 'rgba(0, 0, 0, 0.4)',
borderRadius: '3px 0 0 3px'
},
// blockquote that follows a blockquote
blockquoteFollower: {
borderTopLeftRadius: 0,
borderTopRightRadius: 0
},
blockquoteFollowerDecoration: {
borderTopLeftRadius: 0
},
// blockquote that is followed by a blockquote
blockquoteFollowed: {
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0
},
blockquoteFollowedDecoration: {
borderBottomLeftRadius: 0
}
})
const inlineStyles = theme => ({
code: {
background: 'red'
}
})
export default makeMuiTheme(blockStyles, inlineStyles)
import React from 'react'
import { PluggableEditor, wordCount, muiTheme } from 'draft-js-plugins'
export default function MyEditor ({ onWordCountChange }) {
const [editorState, setEditorState] = useState(defaultContent)
const editorTheme = useEditorTheme()
const plugins = [wordCount({ onWordCountChange }), muiTheme(editorTheme)]
return (
<PluggableEditor
plugins={plugins}
editorState={editorState}
onChange={setEditorState}
/>
)
} Anyway, let me know what you think. I can let you in my private repos in Gitlab (I will end up open-sourcing all of this at some point, of course). |
Don't know about becoming a core maintainer tho. I would sure love to be involved in evolving the idea and could also spend a few hours a week with some bugs but I can't promise any consistency. Count me in as backup maintainer tho. I'll help. I know the code pretty well at this point. At least the I'd be glad to lead the "next" effort as long as it is in this direction I propose and be core maintainer until it becomes stable and everything is upgraded. |
Oh, one last thing, I intend to turn all of the code into Typescript once I'm over the prototyping phase. |
@DaniGuardiola thanks for expressing interest. See Niks comment above for becoming a maintainer, these prs can be smaller than rewriting the Editor btw, I'd recommend smaller PRs because they're easier to review and QA. Either way I'll do my best to help you succeed, looking forward to your contributions! |
@juliankrispel thanks for your answer. First things first, full disclosure: I'm working on this mainly for fun. This doesn't mean, however, that me having fun and this project being maintained are incompatible. And regarding @nikgraf's comment:
In conclusion, I'm very interested in helping out, but here's my two considerations:
|
Hi, apologies for the elevated volume of messages but I'm moving very fast with my project and I just decided I'm switching to slate because it better fills my project's needs. Thought it was worth communicating it. That said, while I won't be using Draft.js anymore, I am still interested in helping with the modernization of the Editor component (the initial work is about half done already!), and implementing new plugins / transform existing ones in relation to the modernized Editor. Sorry if that doesn't exactly fit your need for "project-wide" maintainers, I just hope I can help with this specific part of the project, which is the one I'm interested in. |
Hi, I have some experience using For maintainers, I can be part of building some plugins and improving |
Just curious, Which approach are we going to follow for future ??
@juliankrispel What are different problems you faced with |
As I don't see any answer yet (I know you're probably busy people 😄), here's my plan of action: I'm gonna review the |
Hello there. Just to clarify. To become a maintainer, please follow the steps as outlined by Nik here, if you are serious about becoming a maintainer and have opened prs which have not received a review or feedback, feel free to ping me directly, in this thread or elsewhere. The |
I can help to review current pull requests and issues I want to fix at least the strict mode react warnings |
send me pull requests that you wanna me to review and I will review and merge if everything is all right |
I just gave @sibelius ownership of this Github organisations and made him a collaborator to the npm packages? I trust him to maintain this project and make it even far better. If you have any questions or concerns feel free to reach out to me directly. |
👍
…On Tue, Sep 1, 2020 at 9:48 PM Nik Graf ***@***.***> wrote:
I just gave @sibelius <https://github.com/sibelius> ownership of this
Github organisations and made him a collaborator to the npm packages? I
trust him to maintain this project and make it even far better.
If you have any questions or concerns feel free to reach out to me
directly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1407 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJCCWUFCPJ4V5VQOORTGDDSDVM2HANCNFSM4M2Y3DHQ>
.
|
@DaniGuardiola do you wanna contribute to this repo? I think this #1407 (comment) is a good direction |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's becoming apparent that this repo is becoming abandoned by it's creators. And although it's mentioned that they're working on a new version, that project is apparently stale/abandoned as well.
At the moment of this writing there is 49 outstanding pull requests and no one has reviewed or offered feedback for them. It's clear that the community at large is interested in supporting this project but being ghosted by the repo owners.
@nikgraf @adrianmcli @juliankrispel @bkniffler Could we have a discussion on adding one or perhaps two more moderators to this project to get the ball rolling? I think I speak for many here that we enjoy your contributions to this project and we'd like to continue to help keep it alive.
The text was updated successfully, but these errors were encountered: