NEW: HTMLAREA Editor custom plugin framework support

NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Number of replies: 21
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Overview

This (relatively small) patch to Moodle core (to: lib/weblib.php) enable
SysAdmin to add folders of extra functionality plugins to the HTMLAREA internal editor
without the need to change (patch) any of the lib/editor/htmlarea/htmlarea.php code
for each plugin (toolbar icon) that they wish to add.
(Actually, very similar to the way we can extend Moodle anywhere else...)

Plus, it enables the SysAdmin to control which plugins are visible (system wide)
using a "setting" configuration form. (from the system menu block)

Plugins, included with this patch

  • AskBloom - Help teachers setup a more sophisticated instruction to students as defined by BLOOM
  • Resize editor - Extend the size of the editor when it is very small
  • AudioRecorder - Records Audio comments and embed this into the text (+Flash player)
  • Marker - mark text
  • InserSWF - Insert Flash movies into the text
  • InserEmbed - Insert EMBED element anywhere in the text (no need to switch/know html)
  • Dropbox - support Public sharing of dropbox files
  • FileManager - Support for embeding Block FileManager files inside the text
  • IconGallery - Embed Icons (free sets)
  • CellWith - Change the width of a table's column
  • DrawSVG - Vector Graphics editing tool + Insert SVG drawing into the textarea
  • Paint - Pixlr.com editor + Insert image into the textarea
  • RemoveNOLINK - remove nolink TAG

More info : MDL-2730

I'd love the get your feedback on these new features

Enjoy smile

Average of ratings: -
In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

I tried to apply this to a 1.9.7 test site, but the editor will not display at all after the patched weblib.php is copied over.  I even tried your patched weblib.php file for 1.9.10.  This also displays no editor.  I get only a text box.  I am pretty sure the patch applied successfully.  The output in my Linux shell seemed to indicate that it did.

Any ideas?

I plan to try again with a fresh 1.9.10 install tomorrow to see if I can get it to work on my server.

Rob

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

I guess... You should go to the Admin Menu

  • Administration
  • / Appearance
  • / HTMLAREA Custom Plugins

And enable (select and save) the plugins you wish to make available to your users.

smile

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

I did enable selected plugins, but I still have no luck with the editor showing.  I will keep trying.

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by paul dubois -

Did you try reinstalling moodle? It worked for me

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

I just tried on a fresh 1.9.10 installation and still get no editor.  I used the weblib.php you pre-patched.  My server is Suse Linux 11.1.  What could I have missed?

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

please check the permissions on the custom_plugins folder and sub folder and files to see that they are available for Apache (php) , for reading. ( i think you can run from the cli "chmod -R 644 custom_plugins")

Can you share a link, privatly, to your site. where i can see the editor.

smile

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

Permissions are set.  I even tried 777 and still no editor shows.  If I place the unpatched weblib.php in /lib, the editor works, but no plugins.  I will PM you a login.  Thanks.

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

I recieved the instructions you sent via Moodle messaging.  Disabling the paint plugin did the trick. smile  I have it working in both the 1.9.7 and 1.9.10.  Thank you very much for helping.

I did notice when I mouse over the icons, the tooltip show as askbloom.  Is there a language file that goes with the plugins?

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by Rob Johnson -

Sorry,  the askbloom text in my previous post should have brackets around it as though the lang file were missing.

In reply to Rob Johnson

Re: NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

I'll fix that (the translation).

Thank you for trying it out and for reporting all those issues.

I am getting other feedback too. and i will soon release an update!

smile

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Ron Mitchell -

Hi

are you working on a Moodle 2.1x version of this and if so any indication of when that might be available?

Thanks

Ron

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Fatema Siddiqua -

Hello...I am working with moodle 1.9.11....n need some vector drawing tools in my editor. I tried custom-plugins, bt they r not working with tinyMCE.

I did all this...

1. Apply the patch.

2. Unzip custom_plugins.zip into "lib/editor/htmlarea/custom_plugins"
3. Copy "htmlarea_plugins.php" to "admin/settings"
4. As SysAdmin, start a browser and open "http://youmoodle/admin/settings.php?section=htmlareasettings"
select the plugins you wish to enable and save the settings.
5. Open the HTMLAREA Editor (and checkout your new plugins!)

bt nthng appears in editor....Plz help me...

Thanks

In reply to Fatema Siddiqua

Re: NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

please send me a link so i can check it out (privately)

In reply to Nadav Kavalerchik

Odp: NEW: HTMLAREA Editor custom plugin framework support

by Marcin Stanowski -

Hi,

I wish it worked for me, but it does not.

I followed the instructions and failed. Noithing changes to the editor. I work with 1.9.9.

I applied the patch, but in the patch it says it is for 1910 and I could not find any other patch that would work for all the 19+ versions.

Any help appreciated.

Marcin Stanowski

In reply to Marcin Stanowski

Re: Odp: NEW: HTMLAREA Editor custom plugin framework support

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

please send me a link so i can check it out (privately)

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Kenneth Jones -

not really related to the plugins, but only topic I've seen so I'll ask:

Been having problems creating newsletters with htmlarea and inserting images. They do not display in the emails being sent out, but show up fine in the preview page I create. Just wondering if anyone has had this problem. It seems like it posts fine, but when it saves to the database, the url gets altered and the whole web address is removed...just the relative address is posted???

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Casimiro Pinto -

I am working with moodle 1.9.7

I think I did all to make htmlarea plugin to work but nothing appears in the editor.

Please help...

Thanks

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by llywelyn morgan -

i have read and reread the documentation but am none the wiser how to apply the patch. 
all files have been placed in correct locations and plugins selected in admin settings but toolbar isn't appearing.
i managed to find the weblib file here: http://tracker.moodle.org/browse/CONTRIB-2730 but on replacing the exisiting file with it, the html toolbar disappeared altogether.

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Cristian Biacchi -

Hello!

I am running Moodle with the configuration:

- Mysql (server version) 5.5.16
- Apache 2.2.21 (Win32)
- PHP 5.3.8
- MOODLE v1.9.12

I did exactly the installation procedure:

1. Apply the patch.

2. Unzip custom_plugins.zip into "lib / editor / htmlarea / custom_plugins"

3. Copy "htmlarea_plugins.php" to "admin / settings"

4. The SysAdmin, start the browser and open "http://youmoodle/admin/settings.php?section=htmlareasettings"
select the plugins you wish to enable and save the settings.

5. Open the htmlArea editor (and checkout your new plugins!)

I enabled the pluigins by the browser and saved the settings, but the new publigs not appear in htmlArea editor.

Please what might be going wrong?

Cristian Scheffel Biacchi

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by ali kay -

I am running 1.9.7. and have installed this plugin as directed. I have 2 problems:

1.The icons have appeared but when I hover over an icon I am getting square brackets around the speech text ie/ *double square brackets*dragdropimage*double square brackets* - this is happening to all of the icons.

2.the icons are opening in new windows but are not functioning properly ie the drag and drop window opens but when I drag an image into the box the image appears but freezes the window so the image doesnt appear in the editor, in paint the window opens but the tool bar buttons are blank and dont work. This problem repeats itself with all of the new icons.

Have I missed something?

Thanks

In reply to Nadav Kavalerchik

Re: NEW: HTMLAREA Editor custom plugin framework support

by Tilesh Chudasama -

Are you going to create one for Moodle 2 and above??