Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Load CSS into WYSIWYG #90

@Adnan-cds

Description

@Adnan-cds

We can easily load the CSS of the localgov_theme into the WYSIWYG to get a true WYSIWYG experience.

The following code snippet, when added to the localgov_theme.info.yml file, so do the job:

ckeditor_stylesheets:
  - assets/css/font-face.css
  - assets/css/lib/main.css

We may not need to include the Source Sans Pro font here. This font is also used by the localgov_theme. Some trial and error should confirm.

I am linking to the relevant Drupal documentation and example code from the Bartik theme.

@cjstevens78 @finnlewis

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions