Skip to content

Commit

Permalink
Fixed the description box in Scene Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Aug 1, 2023
1 parent d3a3bce commit 45f8e39
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 2.0.1
* Fixed the scene description box inside the Scene Notes.

#### 2.0.0
* Update to be compatible with Version 11 of Foundry
* Transfer of ownership from [Thalissa](https://github.com/thalissa) to [Veilza](https://github.com/veilza)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Utilities and add-ons for the [Chronicles of Darkness 2e](https://gitlab.com/Mar
* Originally maintained by [Thalissa](https://github.com/thalissa)

### Changelog
#### 2.0.1
* Fixed the scene description box inside the Scene Notes.

#### 2.0.0
* Update to be compatible with Version 11 of Foundry
* Transfer of ownership from [Thalissa](https://github.com/thalissa) to [Veilza](https://github.com/veilza)
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "cofdutils",
"title": "Chronicles of Darkness Utilities",
"description": "Utilities and add-ons for the Chronicles of Darkness 2e system.",
"version": "2.0.0",
"version": "2.0.1",
"authors": [
{
"name": "Veilza",
Expand Down
5 changes: 2 additions & 3 deletions module/scene-notes/scenenotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class SceneNotes extends FormApplication {
title: "Scene Notes",
id: "scenenotes",
template: "modules/cofdutils/templates/scenenotes.hbs",
width: 800,
width: 920,
height: 555,
resizable: true,
minimizable: true,
Expand Down Expand Up @@ -42,8 +42,7 @@ export class SceneNotes extends FormApplication {
actors: [],
journals: [],
items: [],
activeSceneData: this.system.scenes.find(scene => scene.id == this.activeScene),
description: scene.description
activeSceneData: this.system.scenes.find(scene => scene.id == this.activeScene)
}

context.enrichedDescription = await TextEditor.enrichHTML(scene.description, {async: true})
Expand Down
4 changes: 1 addition & 3 deletions templates/scenenotes.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
<i class="deleteScene fas fa-trash" title="Delete Scene" id="deleteScene"></i>
</div>

<!--
<div class="description sceneInfo">
<div class="sectionTitle">{{ localize "CofD.SceneNotes.descriptionTitle" }}</div>
<div class="sectionBody">
{{editor enrichedDescription target="system.description" button=true editable=true engine="prosemirror"}}
{{editor enrichedDescription target="system.description" button=true editable=true}}
</div>
</div>
-->

<div class="actors sceneInfo">
<div class="sectionTitle">{{ localize "CofD.SceneNotes.actorsTitle" }}</div>
Expand Down

0 comments on commit 45f8e39

Please sign in to comment.