Add the ability to display / edit the description from the item sheet
This commit is contained in:
parent
46a235b603
commit
69db3ca719
13 changed files with 168 additions and 17 deletions
|
|
@ -48,7 +48,7 @@ export class SkillData extends foundry.abstract.TypeDataModel {
|
|||
// #endregion
|
||||
|
||||
// #region Sheet Data
|
||||
getFormFields(_ctx) {
|
||||
async getFormFields(_ctx) {
|
||||
const fields = [
|
||||
{
|
||||
id: `fate-path`,
|
||||
|
|
@ -62,12 +62,13 @@ export class SkillData extends foundry.abstract.TypeDataModel {
|
|||
})),
|
||||
},
|
||||
{
|
||||
// TODO: Figure out how tf to make this work nicely on a generic level
|
||||
id: `description`,
|
||||
type: `prosemirror`,
|
||||
label: `RipCrypt.common.description`,
|
||||
path: `system.description`,
|
||||
collaborative: true,
|
||||
uuid: this.parent.uuid,
|
||||
value: await TextEditor.enrichHTML(this.description),
|
||||
collaborative: false,
|
||||
},
|
||||
{
|
||||
type: `group`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue