Last modified: 2014-11-05 20:04:30 UTC
VisualEditor needs a tool to set/unset font colour.
Do we want to do this as a general colour-picker widget, possibly?
Any pros/cons of handling this by wrapping colored text in span with appropriate value of style tag?
*** Bug 51409 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Any pros/cons of handling this by wrapping colored text in span with > appropriate value of style tag? Yeah, that's what we'll want to do. We'll want to supply a generic <span> editor (which lets you edit the style="…" tag as raw CSS) at some point, but we'd want to do something about colour sooner (and nicer), I think.
I think this will be difficult to implement well. I see two concerns: * extraneous (noöp) <span>s being left behind in the wikimarkup; and * <span>s that specify the color black (bad for accessibility, etc.). There may be some generic "clear formatting" button/apparatus to be used to mitigate the second point, but I'm still wary.
(In reply to comment #5) > I think this will be difficult to implement well. I see two concerns: > > * extraneous (noöp) <span>s being left behind in the wikimarkup; and This is the same as bug 37835 and is trivial for us to trim out. > * <span>s that specify the color black (bad for accessibility, etc.). Yes, though we already give people loads of tools that they can (and frequently do) abuse. Technology should serve the community and we should make tools that let them do their job, rather than dictate that they can't do something (or, in this case, that they can but it's hard). > There may be some generic "clear formatting" button/apparatus to be used to > mitigate the second point, but I'm still wary. There's already a "clear formatting" button provided - it would apply its magic to this too.
(Copied from https://www.mediawiki.org/wiki/Thread:VisualEditor/Feedback/Textcolor) Hi there :-) Just wondering, why there is no feature for "coloring Text". In know, there is a way, to use 'span', but im looking for a feature, with a WYSIWYG-Editor. Any advices, ideas? Thanks :-)
Would we need to file a separate bug for background text color?
(In reply to Elitre from comment #8) > Would we need to file a separate bug for background text color? Background colour isn't really a thing we want to encourage. :-) That would be a distinct piece of work; created as bug 73041. If you meant surface colouring for objects like table cells or <div>s, that's another piece of work again - bug 52180 for table cells, possibly that bug will need to be split for the wider work. If you mean the "highlight" / "mark" tool, that's yet another one - bug 64376.