-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit Contentlet: Add TinyMCE V6 WYSIWFY field to the form (#28010)
* chore: update styles * chore: fix tests * chore: hidden bran logo in the editor
- Loading branch information
Showing
4 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
core-web/libs/edit-content/src/lib/fields/dot-wysiwyg-field/dot-wysiwyg-field.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<editor [formControlName]="field.variable" [plugins]="plugins()" [toolbar]="toolbar()"> </editor> | ||
<editor | ||
[formControlName]="field.variable" | ||
[plugins]="plugins()" | ||
[toolbar]="toolbar()" | ||
[init]="init"></editor> |
14 changes: 14 additions & 0 deletions
14
core-web/libs/edit-content/src/lib/fields/dot-wysiwyg-field/dot-wysiwyg-field.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
@use "variables" as *; | ||
|
||
:host::ng-deep { | ||
// Hide the promotion button | ||
// This button redirect to the tinyMCE premium page | ||
.tox-promotion { | ||
display: none; | ||
} | ||
|
||
.tox-statusbar__branding { | ||
display: none; | ||
} | ||
|
||
.tox .tox-statusbar { | ||
border-top: 1px solid $color-palette-gray-400; | ||
} | ||
|
||
.tox-tinymce { | ||
border: $field-border-size solid $color-palette-gray-400; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters