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
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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.

Average of ratings: Useful (1)