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
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);
}