Merge pull request 'Add a way to choose whether a sheet is the toggled mode or the always-editing mode.' (#20) from feature/edit-mode-setting into main
Reviewed-on: #20
This commit is contained in:
commit
47e5eab951
5 changed files with 21 additions and 3 deletions
|
|
@ -139,6 +139,9 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
};
|
||||
|
||||
async _prepareContent(ctx) {
|
||||
// Whether or not the prose-mirror is toggled or always-edit
|
||||
ctx.toggled = true;
|
||||
|
||||
const TextEditor = foundry.applications.ux.TextEditor.implementation;
|
||||
ctx.enriched = {
|
||||
system: {
|
||||
|
|
|
|||
8
module/apps/SingleModePlayerSheet.mjs
Normal file
8
module/apps/SingleModePlayerSheet.mjs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { PlayerSheet } from "./PlayerSheet.mjs";
|
||||
|
||||
export class SingleModePlayerSheet extends PlayerSheet {
|
||||
async _prepareContent(ctx) {
|
||||
await super._prepareContent(ctx);
|
||||
ctx.toggled = false;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue