Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Eldritch-Oliver
9f96805bb7 Prevent the RichEditor from getting the globally applied RipCrypt styling 2025-10-10 21:51:18 -06:00
2 changed files with 10 additions and 5 deletions

View file

@ -14,14 +14,13 @@ export class RichEditor extends HandlebarsApplicationMixin(DocumentSheetV2) {
// #region Options // #region Options
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: [ classes: [
`ripcrypt`, `RichEditor`,
`ripcrypt--RichEditor`,
], ],
window: { window: {
title: `Text Editor`, title: `Text Editor`,
frame: true, frame: true,
positioned: true, positioned: true,
resizable: false, resizable: true,
minimizable: true, minimizable: true,
}, },
position: { position: {
@ -67,6 +66,10 @@ export class RichEditor extends HandlebarsApplicationMixin(DocumentSheetV2) {
this.document = document; this.document = document;
this.path = path; this.path = path;
}; };
get title() {
return `Text Editor: ${this.document.name} (${this.path})`;
};
// #endregion // #endregion
// #region Lifecycle // #region Lifecycle

View file

@ -1,5 +1,5 @@
.ripcrypt--RichEditor { .RichEditor {
width: 500px; width: 525px;
height: 600px; height: 600px;
> .window-content { > .window-content {
@ -12,6 +12,8 @@
height: 100%; height: 100%;
.editor-content { .editor-content {
padding: 0 8px;
border-radius: 8px;
color: var(--input-text); color: var(--input-text);
background: var(--input-background); background: var(--input-background);
} }