Selected text in WYSIWYG editor
Posted
#2062
(In Topic #395)
Standard member

We old guys appreciate your support!
RailDude64
IT and $ guy for
San Antonio Railroad Heritage Museum SARHM.org
Using Composr on InMotionHosting.com
Composr: 10.0.26
Linux: 2.6.32-954.3.5.lve1.4.64.el6.x86_64
PHP: 5.6.39
MySQL: 10.2.12-MariaDB-log
IT and $ guy for
San Antonio Railroad Heritage Museum SARHM.org
Using Composr on InMotionHosting.com
Composr: 10.0.26
Linux: 2.6.32-954.3.5.lve1.4.64.el6.x86_64
PHP: 5.6.39
MySQL: 10.2.12-MariaDB-log
Posted
Site director

The default theme changes the colour as blue is used for other highlights.
That change will by default inherit into other themes.
I suggest changing in global.css:
Code
::selection {
background: {$GET,yellow_highlight_background};
}
Code
.website_body ::selection {
background: {$GET,yellow_highlight_background};
}
That'll make the WYSIWYG use the default selection style, with the yellow only for when selecting site content. We'll make that change in 10.0.1.
Or, you can just remove the whole bit of code if you want the default everywhere.
Or you can put in a CSS colour code of your own.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted
Standard member

Code
::selection {
background: #000000;
color: #ffff00;
}
This applies globally, i.e. in editor windows as well on displayed pages, text input fields, etc.
If you're wanting to display formatted highlighted text within a page, there's a "highlight" tag for that in the Comcode Tag Assistant (under Formatting tags) on the editor toolbar.
1 guest and 0 members have just viewed this.

