bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI

Home Page:http://hallojs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the Image Plugin

daslicht opened this issue · comments

Hello,
is there somewhere an example how to use the Image Plugin and how to upload Images ?
please ?

~Marc

I just tried adding it like this:

      jQuery('.editable').hallo({
          plugins: {
            'halloimage': {},
      },

But i get :

Uncaught TypeError: Object [object Object] has no method 'halloimagecurrent' hallo.js:993

The problem is the current Grunt build doesn't include the image plugins. You can fix it with this patch:
https://github.com/grobmeier/hallo/commit/4beb85daea23a6e01e39214ffabc66de45dd0d71
Or try my fork. Please note, so far my patches have not been submitted and it is not clear if they are ever coming into the main source.

Anyway, apply the patch and rebuild the project, then you should be able to include the images.

Thank you very much !

@daslicht did you get this working? I haven't seen any docs or examples for how to actually upload and insert images, though it doesn't throw any errors in the version I'm using.

@clov3rly I can't remember, have you tried the solution grobmeier proposed?