-
Notifications
You must be signed in to change notification settings - Fork 329
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
(WIP) Color Picker #1620
(WIP) Color Picker #1620
Conversation
Out of curiosity, why not use codemirror-colorpicker? It seems to be well integrated with codemirror. I think it would be handy to have the inline color picker which opens when clicking on a :before element, such as the below (done with just browser inspector): |
@Gazook89 Is that something we can integrate with our v3 markdown or is it only compatible with the editor in CSS mode? |
@calculuschild i am not sure, in regards to codemirror-colorpicker. With react-color, I tried building on this PR to add an element in front of hexadecimal color codes to get started, but didn't get very far. I was using the functions in markdown.js that convert the |
I tried using
As do I; I don't expect the current iteration to be the final product. However if someone else wants to run with this feature, either using this work as a starting point or ignoring it completely, I would not be upset at all. |
I've finally had a chance to play around with this. I do like the idea of it, but here are my thoughts for moving forward:
|
Just a thought while I was doing the code editor page numbers: this might be a good use of I don't have anything to add beyond that. 🤷 |
This might be overtaken by #1870, although this is a good reference for that. Any opposed if we close this down? |
I support the general principle of doing-the-work / keeping-notes in the one issue, so a maybe-yes to closing. That said, would be sad if progress on this one feature was blocked by slower progress on a much larger effort. Could we re-point/revise this issue to be compatible with #1870 and marking it as Blocked? Are there things in #1870 that would be a major blocker to this? |
#1870 also proposes a whole different mechanism for summoning the color wheel, so it's built upon a different code structure that this PR isn't really compatible with. In other words, we could spend the effort to make this PR work, but it would just be torn town and rebuilt later once #1870 is underway, which is in turn waiting for "themes". |
I actually read all the comments and yeah a lot would be rewritten for #1870, though it might be good on a standalone basis for the style tab. |
Closing. This needs further discussion on the underlying issue to make sure how/whether this needs to be handled going forward. |
This draft PR is an initial pass at adding a color picker tool to the Text and Style tabs. As of this commit, the color picker is functional and updates the text in the editor:
Once completed, this PR will resolve issue #1422.