Details
Description
I have no idea how to use the editor form control in the new blocks/html/edit_form.php I have just made.
At the moment this is used from blocks/edit.php, but that code may have to move to lib/blocklib.php.
There may be other blocks with HTML content, I am not sure yet.
By the way, people definitely like putting images in HTML blocks so we have to fix this. At least all blocks have a context now.
Hi guys,
I've attached a patch to for this issue... I have no clue whether it will suit the needs of Moodle but it is based on code I had already written for a block. I've modified it slightly to integrate it with the main plugin.php file (I had created a separate plugin.php file for my block
)
What you should know about it:
Cheers
Sam
- For a block to make use of files + pluginfile.php it must define a method '''send_file'''
- The file area for the block MUST start with '''block_{blockname}'''
- Obviously it must use the blocks context
Cheers Sam