Skip to Content Skip to Menu

[SOLVED] Editor Text editor CSS

  • bmeeker
  • bmeeker
  • OFFLINE
  • Posts: 65
  • Thanks: 8
  • Karma: 1
2 years 1 week ago #331607 by bmeeker
Replied by bmeeker on topic Editor Text editor CSS
Just tried it and it turns the label bold red.
I want just the field to be bold red.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 1 week ago #331617 by krileon
Replied by krileon on topic Editor Text editor CSS
You'll need to of course write your CSS so it only targets what you specifically want it to. The CSS Class will add to the div surrounding a field so it makes it easy to target specific parts of a field without being dependent on field id specific selectors.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • bmeeker
  • bmeeker
  • OFFLINE
  • Posts: 65
  • Thanks: 8
  • Karma: 1
2 years 1 week ago #331621 by bmeeker
Replied by bmeeker on topic Editor Text editor CSS
Kyle:

You are the expert, but I don't see how to do that.
The issue to me is the CSS for regular Fields and the Editor Text Areas are both classified as: .cbAjaxValue
So, I do not see how to write a CSS code to make the fields bold red, without the text in the Editor Text Area showing bold red also.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 1 week ago #331630 by krileon
Replied by krileon on topic Editor Text editor CSS
When a field is being ajax edited it is given the cbAjaxEditing class on its ajax edit container. You can target that to style only the display aspect. Example as follows.
Code:
.myCssClassHere .cbAjaxContainer:not(.cbAjaxEditing) .cbAjaxValue { color: red; }

You'd then just add myCssClassHere to the fields with ajax editing that you want to be red.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • bmeeker
  • bmeeker
  • OFFLINE
  • Posts: 65
  • Thanks: 8
  • Karma: 1
2 years 1 week ago #331639 by bmeeker
Replied by bmeeker on topic Editor Text editor CSS
Wow - thanks Kyle!
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum