forked from public/foundryvtt-reve-de-dragon
Foundry v13 migraton, WIP
This commit is contained in:
@ -13,7 +13,7 @@ const TEXT_ROLL_MANAGERS = [
|
||||
|
||||
export class RdDTextEditor {
|
||||
static registerChatCallbacks(html) {
|
||||
html.on("click", '.roll-text', async event => await RdDTextEditor.rollText(event))
|
||||
$(html).on("click", '.roll-text', async event => await RdDTextEditor.rollText(event))
|
||||
}
|
||||
|
||||
static async enrichHTML(text, object, options = {showlink:true}) {
|
||||
@ -30,7 +30,7 @@ export class RdDTextEditor {
|
||||
context.text = await manager.onReplaceRoll(context);
|
||||
}
|
||||
|
||||
return await TextEditor.enrichHTML(context.text, {
|
||||
return await foundry.applications.ux.TextEditor.implementation.enrichHTML(context.text, {
|
||||
relativeTo: object,
|
||||
secrets: object?.isOwner,
|
||||
async: true
|
||||
|
Reference in New Issue
Block a user