1. 18 May, 2016 1 commit
  2. 02 Feb, 2016 1 commit
    • Aaron Wells's avatar
      Prevent crashes when embedding images · 3f4b4b7f
      Aaron Wells authored
      Bug 1540667: Prior to commit c4329032, we were loading htdocs/artefact/internal/lib.php
      on *every* page load, via the login auth method's code that checked for missing
      internal artefact files. This call meant that we also loaded artefact/lib.php on
      every page load.
      
      Removing that for performance reasons, caused some calls to embeddedimages.php to fail,
      when they were on pages that aren't otherwise requiring artefact/lib.php.
      
      behatnotneeded: Can't use the image embedder from Behat
      
      Change-Id: Ibcdbd17d289f2b4614c28ad522173286acc9bc27
      3f4b4b7f
  3. 22 Oct, 2015 1 commit
    • Son Nguyen's avatar
      Handle embedded image deletion better. Bug 1489284 · 740c0fa7
      Son Nguyen authored
      Refactor updating embedded images
      
      Deals with the deleting of embedded images in a:
      - blog
      - forum post
      - forum topic
      - group description
      - note
      - page description
      
      Also sorts out the problem where a note embedded item can be saved
      with both 'editnote' and 'textbox' resourcetype. We only need one.
      
      Also add 'static' to EmbeddedImage::methods()
      
      behatnotneeded
      
      Change-Id: Ife1f9dee5ffe9eae4468eadb8f46a16a0a2a9044
      740c0fa7
  4. 19 Oct, 2015 1 commit
  5. 18 Aug, 2015 1 commit
  6. 02 Jul, 2015 1 commit
  7. 31 Mar, 2015 1 commit
  8. 16 Mar, 2015 1 commit
  9. 16 Dec, 2014 1 commit
    • 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: default avatarMike Kelly <m.f.kelly@arts.ac.uk>
      36bc9f7d