Long text fields have an optional "summary" field. There is no WYSIWYG options for the summary field. What if I need bold text in the summary field. 

Is there a solution for this?

Comments

It seems that while the summary field does not have a WYSIWYG editor. It does have the same text format as the main body field. 

Cutting and pasting content from the body field does not always work to keep formatting, unless you cut and paste from the source. 

I am wondering if there is a module that adds a WYSIWYG editor to the summary field. 

Here is a draft module, but I don't want to push this to contrib until I am sure there is no alternative already.

https://github.com/stpaultim/summary_editor

I always do a separate summary field for these reasons:

  • Avoids the UI cludge of having either a summary or a trimmed value of body
  • Allows summary to be mandatory
  • Allows a fixed length that adheres to the need for the meta description which combined with a module to show a countdown helps to focus the mind of the editor.
  • Ensures that a suitable summary is added to help Google (and other services using this data) understand the content of the page.
Enthusiast's picture

CSS - font-weight: bold.
If in the future you want to remove the bold for that field on all pages of the site, changing the formatting of all pages is very difficult, unlike changing the CSS style.
 

The simple way is
- View source code
- Copy and paste what you need
- Bold can be easily added with <b> or <strong> tags