• Mike Kelly's avatar
    Implement TinyMCE imagebrowser plugin · 36bc9f7d
    Mike Kelly authored
    This is a TinyMCE plugin which allows for browsing and embedding of
    Mahara-hosted images as well as the embedding of external web-hosted
    images. This makes adding inline images to WYSIWYG text boxes more
    user-friendly.
    
    Viewing permissions for these embedded files is set by adding references
    to them to a new database table, artefact_file_embedded, then checking
    for the existence of the references in the table when serving the files
    via artefact/file/download.php. For content blocks in views, such as
    text and textboxes, any embedded images are saved as view artefacts, and
    viewing permission is granted for those files accordingly via previously
    existing checks in artefact/file/download.php.
    
    This patch is designed to allow image embedding in all WYSIWYG text
    boxes throughout Mahara, hence the table structure, with resourcetype
    and resourceid providing the context for checking the validity of the
    image file to be served.
    
    Change-Id: Idcc5ab3495eed44eea6ced171d670ba4c73884f6
    Signed-off-by: 's avatarMike Kelly <m.f.kelly@arts.ac.uk>
    36bc9f7d
Name
Last commit
Last update
external Loading commit data...
htdocs Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
README Loading commit data...
phpunit.xml Loading commit data...