Silex
Silex copied to clipboard
[feature request] better style editor: manual overriding
In a word processor, when we want to change a style attribute, say Italics, we can do that in two ways. One is to create such style and apply it to that part. Second way is to just manually apply Italics to that part, this way is called something like manual overriding.
Manual overriding isn't good for systematic and automated approach as it stays on top of all other styles until removed manually. And styles, on the other hand, gets applied automatically over the whole content at one go.
But if such attributes [like italics, bold, underline, color, size] are numerous and don't often repeat in exactly same way, then manual overriding is much better option than creating dedicated styles everytime by saving time and effort. Such situation can be common for sites and Silex requires one to create new style everytime [I think so because if one doesn't do that then 'All style' gets applied which I think applies possible common attributes of all styles and things go out of control, teach me if I'm wrong].
So according to what I've done till and expectations of future, one may easily end up with lots of custom styles, say from 20 to 50 of them is not a big deal.
My point is, to have a speedy trouble-free manual overriding facility like a word processor.
Am I successful in getting my point across? And teach me if things are already easy but I don't know. Thanks a lot for helping.
This is very clear yes Thank you for this detailed and elegant solution I will take it into account as soon as i have time for this issue
For reference : the discussions we had while creating the style editor
I suggest to do like wix:
- [ ] italics, bold, underline (not the same as tag/semantics)
- [ ] color, background color
- [ ] font size, font family
and maybe some things more advanced
- [ ] alignment
- [ ] padding, margin
- [ ] border