TinyMCE: Sketch

Maintained by Picture of Matthew DavidsonMatthew Davidson
Simple image "paint like" editor for tinymce.
173 sites
7 fans
Current versions available: 1


Adds a simple "Paint" like program to the tinymce editor. Features include simple shape tools, drawing, typing, colors, undo/redo. Utilizes the open source "Literally Canvas" image editor. http://literallycanvas.com/


Create the lib/editor/tinymce/plugins/sketch folder and place all files there. Run through standard Moodle update/install process.


Set cursor in the editor and click the sketch icon. The editor will open full screen. Use a stylus, finger or mouse to create/edit image. Click "Insert Sketch" to add to editor.


Screenshot #0
Screenshot #1


Picture of Matthew Davidson
Matthew Davidson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Thu, Jun 29, 2017, 2:30 AM
    Approval issue created: CONTRIB-6957
  • Picture of Mauricio Meza
    Fri, Jun 1, 2018, 4:42 AM
    Hi, nice plugin but cant see students creations in review son cant grade it. Hope you can help me. Im using adaptable theme, moodle 3.5.
  • Picture of Matthew Davidson
    Fri, Jun 1, 2018, 4:44 AM
    @Mauricio Meza. Are you using the setting "Store as image file"? Enable that setting and try again. It won't fix images that are already made, but it might fix future images.
  • Picture of Matthew Davidson
    Fri, Jun 1, 2018, 4:45 AM
    @Mauricia Meza The reason is that Moodle sometimes strips images that are inline base64 encoded. I plan on making the setting ON by default in future versions.
  • Picture of Mauricio Meza
    Fri, Jun 1, 2018, 4:53 AM
    I did, but student made the drawing and "Insert Sketch" button doesnt work
  • Picture of Mauricio Meza
    Fri, Jun 1, 2018, 5:01 AM
    So, it wont work in students answers?
  • Picture of Matthew Davidson
    Mon, Jun 4, 2018, 8:33 PM
    If using "Store as image file" it will work because it is literally adding the image just like Moodle adds any other image. However, student sketches made before the setting change still might not work. There is a workaround, by changing a weblib.php file. Go to lib/weblib.php:

    Look for

    $config->set('URI.AllowedSchemes', array(
    under it you will see a bunch of array values set to true. Add the following to the top of the array()

    'data' => true,
  • Picture of Mauricio Meza
    Sat, Jun 16, 2018, 12:46 AM

    The problem was solved.
    Used "task" plugin and not the "lesson" because with this it does not work.
    Thank you so much.
    Excellent plugin
  • Picture of John Michael
    Sat, Sep 19, 2020, 12:26 PM
    Awesome plugin... does the job when you have the doodles. Mike from sprinkler repair fresno
  • Picture of Esther I.K
    Wed, Sep 23, 2020, 10:07 AM
    I have the same issue, I cannot see student's answer in sketch (but teacher can do that without any issue). Tried to turn on "Store as image file", but the "insert sketch" button become unresponsive. Could you please help? Thank you.
Please login to post comments