Monday, 13 May 2013


Uploading Plugin

In order to upload a plugin
Step 1 - Go to File|Plugin.
Step 2 - Select you zipped file with the plugin.
Step 3 - Click on the upload button.

Plugin will be uploaded and browser will be refreshed to include the requested changes.

Delete Plugin

In order to delete a plugin
Step 1 - Go to File|Plugin.
Step 2 - Select your  plugin it should be highlighted with yellow color.
Step 3 - Click on the delete button.
Plugin will be removed from the paint doodler  app after the page refresh.

Creating Plugin

 Create a zip file with following files. Please ensure that the file names are as specified below
Following is the list of mandatory files for the plugin

  • info.txt
  • js.txt
  • tools.txt
Following is the list of optional files for the plugin
  • control.txt
  • stylesheet.txt

Contents of info.txt

Sample content of info.txt can should be as follows
name=<your plugin name>
shortDescription=<Your plugin description>
url=<URL to your page>

Content of js.txt

A sample java script file could look like following. The content of this file will be read and placed under the <head></head> section of the app page.
function myFunction()
document.write("hello world")

Content of tools.txt

Sample content of tools page could like follows. The content of this page will be used to create the toolbox. Clickng the added icon will call the myFunction defined in js.txt. If you are not familiar with the Paint doodler user interface kindly refer to blog page at 
To use an image/icon in toolbar we are using base64 encoded image.
<tr><td colspan=2><img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0ICQMB9xQAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAAMaSURBVHja7dwhcMIwFMbxyMnJSeQkcnJyshKJRCIni5qsnEROTiKRyEkkchKJZO2N7UovL023Ql+SP3ff3a5wXMNvlNf0NcYYcyRBhQ8BMAIYAQwwAhgBDDACGAEMMBIE2GKxMKS/AAYYYIARwAADDDACmO0DuC/zAFg4YKsyH4AFAFY+stq+TgFTDFY+bsp81va1+vsGML0DLyz7mwOmc9DjMgfL/lbb7gDTN+i1Y5+XgOka8MRjv8eA6RjsbaPQkLIBTG+hISUDbPhCo8u+7zSW+SmBbf4w2Dlgwwxy+sd+iL22Mj96sA6FhpQCsOsO8LWHziM1ZX7UYI5C43AqKprbpW/iO2DXGdyHsF8vwmxHtX2rucyPFqx8zFzlugCTNy651KPimlmUYFVl5zi8ZafX7KTZesdc4+Blfqxgr22/RS1g0m9f9U9wC1j/3y6p0Bj5gJ2eXwrvkwN2ncowb7zOBjZrwNuuma0B639Q67Z5QQFs2nhNbqskAbvMYfGnpF/afnd8wCxo66EnhFPu6fACqx1mVfQupgx28AVjLlHvwAEDDDDAAPvNE2BhDfwRMMAAAyy9Vu0RYIABBhhggEUGdg9YWGAjwAADDLD0wB4B09UiMDm1pO1tXU5dwKorzeZ78ZXCKLiTJdauqYPUDdUFzNI9vKOno/8B2Tqdzu7z8gEz32tQ2doIJoD1OyCpp75oA2u8z0rjNbMYwZpLEtU7f8c+YEa+IWLLIfEyg5obR2+9C8wBruKKdLRlvZHvDctawF5My40UgF1mYNJhrYKcCs+NjfI1qKI+ca6+FQ4023bpvrBnTpyvd052/GcGLzSSmpoy3ZYrUt/6lgKYdJ+XT9SsHpDU5K+jzHdF5WKXqYC5zq2O2guNJC+vOMp8qYpUuWBzUtfDHOV8MM04qYH5lPlvWrGSA2s5mVZbaKQO5irz55qxkgRznEyrLTQAs5f5aguN5MEsJ9OqCw3Azst89YUGYOcn0+oLDcACDmCAAQYYAQwwwAAjgAEGGGAEMMBIOOFDAIwARgADjABGAAOMAEYAA4wMkS8PspERTFkqgQAAAABJRU5ErkJggg==" onClick ="myFunction()"/></td></tr>

Content of this page will be read and added to html used to create toolbox. Skeleton code for tool box is shown below.
 <div id="draggabletool" class="ui-widget-content showtooltip">

Global Variables

Getting access to canvas layers are standard HTML5 canvas element. You can get the ordered list of document is using the java script global variable canvasList (Array). All the global variables are defined in file

Top Menu

If you need to change any element under top menu, you can access the HTML code for the top menu at Top Menu and  use java script to modify.

Please note at the moment we are allowing use of single plugin file. It is for in order to keep the storage space in control.  It is not a limitation and in near future we will open it to as many plugin as you want.

Do email us at to increase the number allowed plugin and we will increase it on a case by case basis.Decision of the pant doodler admin in this regard will be final.

Plugins and tutorials

Adding plugin for static canvas -

This post is part of series plugin development tutorial series for Paint Doodler app.

This is the official blog for paint doodler app
Online painting,drawing and image editing platform . paint doodler is based html5 canvas and is purely java script diven
Doodle Paint is a full featured painting and image editing platform providing users with versatile collection of tools and enabling users to contribute to ever growing community of doodlers with new features through plug-in.
visit -

No comments:

Post a Comment