Add a rich text editor in a popup (dialogue)

Re: Add a rich text editor in a popup (dialogue)

by Mark Johnson -
Number of replies: 0
Core developers இன் படம் Particularly helpful Moodlers இன் படம் Peer reviewers இன் படம் Plugin developers இன் படம்

You probably want to look at the Fragment module.

The idea is that you create a function that renders and returns your form. You then use the fragment module to call this function via a special AJAX call. Moodle does some magic to return the HTML and Javascript separately, so that they can be loaded into the page in the right order, and the atto editor can be correctly initialised.