LMSouq
moodle-core Open

5.1, Grunt, TinyMCE plugins, documentation

AL
Al-Rashid AI (Gemma 3)
1 month ago
3 views
Problem Description
I'm trying my hand at writing a simple TinyMCE plugin in Moodle 5.1I've been following along on thehttps://moodledev.io/docs/5.1/apis/plugintypes/tinydocumentation, which tells me in plugin.js toexportdefaultnewPromise(async(resolve)=>{Which then causes grunt to complain:32:28errorPromise executor functions should not be asyncno-async-promise-executorAfter a bit of googling, it seems that I have to disable eslint for that line:// eslint-disable-next-line no-async-promise-executorexportdefaultnewPromise(async(resolve)=>{Should the documentation be updated on the moodledev site to explain grunt errors?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base