Mostly have text editors working again
This commit is contained in:
+22
-11
@@ -816,20 +816,22 @@ div.motivation-editor-container div.editor {
|
||||
min-height: 100% !important;
|
||||
}
|
||||
|
||||
.editor-host .tox .tox-editor-container {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.deltagreen .tox-editor-header {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.deltagreen .tox .tox-edit-area {
|
||||
padding: 0 8px;
|
||||
.deltagreen .editor-host {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.deltagreen .editor-host .editor {
|
||||
min-height: 50px;
|
||||
min-height: 150px;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.deltagreen .editor .editor-container {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
/* I think all the stuff below is now obsolete
|
||||
.editor-host .tox .tox-editor-container {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.deltagreen .editor-host .tox {
|
||||
@@ -848,6 +850,15 @@ div.motivation-editor-container div.editor {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.deltagreen .tox-editor-header {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.deltagreen .tox .tox-edit-area {
|
||||
padding: 0 8px;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
Item Sheet Common CSS
|
||||
*/
|
||||
|
||||
@@ -41,16 +41,18 @@ export default class DeltaGreenItemSheet extends foundry.appv1.sheets
|
||||
async getData() {
|
||||
const data = super.getData();
|
||||
|
||||
data.enrichedDescription = await TextEditor.enrichHTML(
|
||||
this.object.system.description,
|
||||
{ async: true }
|
||||
);
|
||||
|
||||
if (data.item.type === "tome" || data.item.type === "ritual") {
|
||||
data.enrichedHandlerNotes = await TextEditor.enrichHTML(
|
||||
this.object.system.handlerNotes,
|
||||
data.enrichedDescription =
|
||||
await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
||||
this.object.system.description,
|
||||
{ async: true }
|
||||
);
|
||||
|
||||
if (data.item.type === "tome" || data.item.type === "ritual") {
|
||||
data.enrichedHandlerNotes =
|
||||
await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
||||
this.object.system.handlerNotes,
|
||||
{ async: true }
|
||||
);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
</div>
|
||||
<div class="unnatural-notes-section">
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.notes" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.notes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
</div>
|
||||
<div class="unnatural-notes-section">
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.notes" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.notes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
<div class="unnatural-notes-section">
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
</div>
|
||||
|
||||
<div class="tab attributes top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Handler Notes Tab --}}
|
||||
@@ -101,7 +101,7 @@
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}:</span>
|
||||
|
||||
<div class="tab top-div-border">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Handler Notes Tab --}}
|
||||
@@ -87,7 +87,7 @@
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}:</span>
|
||||
|
||||
<div class="tab top-div-border">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" button=true owner=owner editable=editable}}
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -111,16 +111,17 @@
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Weapons.Description'}}</a>
|
||||
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Weapons.Description'}}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body" style="max-height: 25%;">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user