TinyMCE: Sketch

tinymce_sketch
Maintained by Picture of Matthew Davidson Matthew Davidson
Simple image "paint like" editor for tinymce.
55 sites
103 downloads
6 fans

Description

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/


Installation

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


Use

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.


Screenshots

Screenshot #0
Screenshot #1

Contributors

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, 29 Jun 2017, 2:30 AM
    Approval issue created: CONTRIB-6957
  • Picture of Mauricio Meza
    Fri, 1 Jun 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, 1 Jun 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, 1 Jun 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, 1 Jun 2018, 4:53 AM
    I did, but student made the drawing and "Insert Sketch" button doesnt work
  • Picture of Mauricio Meza
    Fri, 1 Jun 2018, 5:01 AM
    So, it wont work in students answers?
  • Picture of Matthew Davidson
    Mon, 4 Jun 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, 16 Jun 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
Please login to post comments