Skip to content

Conversation

@jovana-marceta
Copy link
Contributor

@jovana-marceta jovana-marceta commented Oct 30, 2024

https://enigmatry.atlassian.net/browse/BP-1293

The Redactor editor will replace CKEditor. This new rich text editor includes predefined CSS that lacks support for our custom theming system, which covers colors, fonts, spacing, and other customizable options.

To address this, this update introduces a mixin that overrides default values for the following elements used in the Basics & Standard Redactor configurations.

Covered elements: Headings (h1 to h6), toolbar buttons, paragraphs, bullet and numbered lists, checkboxes (to-do items), tables, buttons, and links.

Additionally, our custom Redactor class and light mode by default have been added to the Redactor repository.

$theming-font-weight: map.get($theme, 'general', 'fonts', 'buttons', 'weight');
$theming-font-size: map.get($theme, 'general', 'fonts', 'buttons', 'size');

$primary-color: if($theming-primary == '' or $theming-primary == null, mat.get-color-from-palette(mat.$primary-palette, 500), $theming-primary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Cvetanovic please communicate with @jovana-marceta where she has found this shorter IF syntax for Scss because I was not able to find it the latest official docs (which doesn't mean it's not working).


.enigmatry-redactor-content {

$checkbox-color: if($theming-accent-color == '' or $theming-accent-color == null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood we need to check for empty string and null for variables coming from AM, but this is our theme which leads me to the fact something's maybe not right on your machine, @jovana-marceta .
@Cvetanovic please switch to this branch and try testing this if condition without empty string and communicate with Jovana (and me eventually) whether is working and what exactly isn't since we expect null value if unset and not an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants