I'm using Aloha editor for editing content on a website powered by PHP and MySQL. It's working fine, but I need to be able to insert images/pictures. I found an Aloha editor plugin for that. Here are some links:
- http://labs.tapo-it.com/aloha-editor/image-plugin/
- http://aloha-editor.org/wiki/ImagePlugin
- https://github.com/alohaeditor/Aloha-Plugin-Image
There is an example in the first link. However, I can't get the plugin running on the latest version of Aloha editor and jQuery. It fails to load and Chrome says:
image.js:30 Uncaught TypeError: Cannot read property 'fn' of undefined
I have no bloody clue what this means.
Ideally, the user should be able to select an image from a list of images that are on the server. These are located in a single directory and also have a MySQL table for them. I suspect this is where the repository comes in, but I wasn't able to understand how to implement that.
Has anyone had any luck using this plugin in Aloha editor, or found any other ways of inserting images?