diff --git a/scss/components/_text-editor.scss b/scss/components/_text-editor.scss new file mode 100644 index 00000000..7133aa69 --- /dev/null +++ b/scss/components/_text-editor.scss @@ -0,0 +1,4 @@ +// Fields have whitespace that should be honoured +.editor-html-pre-styled { + white-space: pre-wrap; +} diff --git a/scss/herosystem6e.scss b/scss/herosystem6e.scss index ad511d59..ff00282a 100644 --- a/scss/herosystem6e.scss +++ b/scss/herosystem6e.scss @@ -48,3 +48,6 @@ /* Effects Panel */ @include meta.load-css("components/effects-panel"); + +/* Styles for TextEditor */ +@include meta.load-css("components/text-editor"); diff --git a/templates/actor/actor-sheet.hbs b/templates/actor/actor-sheet.hbs index 0632adbe..7986bb90 100644 --- a/templates/actor/actor-sheet.hbs +++ b/templates/actor/actor-sheet.hbs @@ -811,13 +811,12 @@
{{localize "ActorSheet.Biography"}} | ||
---|---|---|
+ | {{editor enrichedBIOGRAPHY target="system.CHARACTER.CHARACTER_INFO.BIOGRAPHY" @@ -832,7 +831,7 @@ | {{localize "ActorSheet.BACKGROUND"}} |
+ | {{editor enrichedBACKGROUND target="system.CHARACTER.CHARACTER_INFO.BACKGROUND" @@ -846,7 +845,7 @@ | {{localize "ActorSheet.PERSONALITY"}} |
+ | {{editor enrichedPERSONALITY target="system.CHARACTER.CHARACTER_INFO.PERSONALITY" @@ -860,7 +859,7 @@ | {{localize "ActorSheet.QUOTE"}} |
+ | {{editor enrichedQUOTE target="system.CHARACTER.CHARACTER_INFO.QUOTE" @@ -874,7 +873,7 @@ | {{localize "ActorSheet.TACTICS"}} |
+ | {{editor enrichedTACTICS target="system.CHARACTER.CHARACTER_INFO.TACTICS" @@ -888,7 +887,7 @@ | {{localize "ActorSheet.CAMPAIGN_USE"}} |
+ | {{editor enrichedCAMPAIGN_USE target="system.CHARACTER.CHARACTER_INFO.CAMPAIGN_USE" @@ -902,7 +901,7 @@ | {{localize "ActorSheet.APPEARANCE"}} |
+ | {{editor enrichedAPPEARANCE target="system.CHARACTER.CHARACTER_INFO.APPEARANCE" |