1. 27 Feb, 2015 1 commit
    • Son Nguyen's avatar
      Fix embedded images in 'Text' block when copy and import. Bug 1425728 · 2b259a85
      Son Nguyen authored
      - Add new method PluginBlocktype::rewrite_blockinstance_extra_config()
      which enables blocktype to rewrite extra configuration when copying
      - Implement rewrite_blockinstance_extra_config() for
      PluginBlocktypeText to rewrite embedded image urls in the text block
      - Rename the method rewrite_artefact_ids() to
      rewrite_blockinstance_config() and add new code to allow blocktype
      plugins rewrite extra config when import
      - Add new method
      - Implement
      PluginBlocktypeText::import_rewrite_blockinstance_extra_config_leap() to
      rewrite embedded image urls in configdata['text']
      Change-Id: Id5163817c676fb118edea02d152b7797111cb99f
  2. 01 Feb, 2015 1 commit
  3. 11 Jan, 2015 1 commit
  4. 16 Dec, 2014 1 commit
    • Mike Kelly's avatar
      Implement TinyMCE imagebrowser plugin · 36bc9f7d
      Mike Kelly authored and Aaron Wells's avatar Aaron Wells committed
      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
      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: default avatarMike Kelly <m.f.kelly@arts.ac.uk>
  5. 03 Dec, 2014 1 commit
  6. 11 Nov, 2014 1 commit
  7. 09 Nov, 2014 1 commit
  8. 22 Oct, 2014 1 commit
    • Aaron Wells's avatar
      Bug 1383995: Move plugin files into the /theme directory · 89e4609b
      Aaron Wells authored
      Theme files for plugins can now live under the plugin's directory or under
      the theme's directory. Moving the files for the core plugins to /theme
      should make life easier for theme developers by putting them all in one place.
      Change-Id: Icff863c46c80ed2d6be07cd49404bc0b7f5fc4c0
  9. 02 Sep, 2014 1 commit