Prevent the RichEditor from getting the globally applied RipCrypt styling

This commit is contained in:
Eldritch-Oliver 2025-10-10 21:51:18 -06:00
parent 5b9e808ea9
commit 9f96805bb7
2 changed files with 10 additions and 5 deletions

View file

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

View file

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