bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI
http://hallojs.org/
MIT License
2.43k stars 318 forks source link

Using the Image Plugin #195

Closed daslicht closed 11 years ago

daslicht commented 11 years ago

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

~Marc

daslicht commented 11 years ago

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
grobmeier commented 11 years ago

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.

daslicht commented 11 years ago

Thank you very much !

clov3r commented 9 years ago

@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.

daslicht commented 9 years ago

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