Open aaclayton opened 4 years ago
didn't work fvtt 0.7.7
The TinyMCE editor in the QuestPreview app doesn't save properly anymore because of some changes to the FormApplication class in FVTT version 0.7.3+
You currently do this:
/** * When editor is saved, we want to update and save quest. * * @param target * @param element * @param content * @returns {Promise<void>} * @private */ async _onEditorSave(target, element, content) { this.quest[target] = content; this.saveQuest(); }
Ths
_onEditorSave()
method no longer exists in the core FVTT code. You need to do something like this:/** @override */ saveEditor(name) { const editor = this.editors[name]; this.quest[name] = editor.mce.getContent(); super.saveEditor(name); this.saveQuest(); }
didn't work fvtt 0.7.7
The TinyMCE editor in the QuestPreview app doesn't save properly anymore because of some changes to the FormApplication class in FVTT version 0.7.3+ You currently do this:
/** * When editor is saved, we want to update and save quest. * * @param target * @param element * @param content * @returns {Promise<void>} * @private */ async _onEditorSave(target, element, content) { this.quest[target] = content; this.saveQuest(); }
Ths
_onEditorSave()
method no longer exists in the core FVTT code. You need to do something like this:/** @override */ saveEditor(name) { const editor = this.editors[name]; this.quest[name] = editor.mce.getContent(); super.saveEditor(name); this.saveQuest(); }
Make sure async_onEditorSave is replaced. Replace that whole section with this, and it will work:
/**
* When editor is saved, we want to update and save quest.
*
* @param target
* @param element
* @param content
* @returns {Promise<void>}
* @private
*/
saveEditor(name) {
const editor = this.editors[name];
this.quest[name] = editor.mce.getContent();
super.saveEditor(name);
this.saveQuest();
}
my damn eyes.......it was night already yesterday in Moscow when I tried to fix it, so I was trying to change these lines in quest-form app, not in QuestPreview. Thanks a lot!
didn't work fvtt 0.7.7
The TinyMCE editor in the QuestPreview app doesn't save properly anymore because of some changes to the FormApplication class in FVTT version 0.7.3+ You currently do this:
/** * When editor is saved, we want to update and save quest. * * @param target * @param element * @param content * @returns {Promise<void>} * @private */ async _onEditorSave(target, element, content) { this.quest[target] = content; this.saveQuest(); }
Ths
_onEditorSave()
method no longer exists in the core FVTT code. You need to do something like this:/** @override */ saveEditor(name) { const editor = this.editors[name]; this.quest[name] = editor.mce.getContent(); super.saveEditor(name); this.saveQuest(); }
Make sure async_onEditorSave is replaced. Replace that whole section with this, and it will work:
/** * When editor is saved, we want to update and save quest. * * @param target * @param element * @param content * @returns {Promise<void>} * @private */ saveEditor(name) { const editor = this.editors[name]; this.quest[name] = editor.mce.getContent(); super.saveEditor(name); this.saveQuest(); }
The TinyMCE editor in the QuestPreview app doesn't save properly anymore because of some changes to the FormApplication class in FVTT version 0.7.3+
You currently do this:
Ths
_onEditorSave()
method no longer exists in the core FVTT code. You need to do something like this: