Compare commits
1 commit
main
...
bug/rich-e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f96805bb7 |
2 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue