.. | ||
css | ||
demo | ||
img | ||
lib | ||
nls | ||
test | ||
vendor | ||
AGPL3 | ||
LICENSE | ||
package.json | ||
README.md |
The AlohaEditor Image Plugin
Image Plugin for enabling basic images manipulations in Aloha HTML5 Editor
Features
- Insert image
- Edit url and title
- set align
- Handles DragnDropFiles Plugin events for image files dropped in current page.
- css resize with controlbuttons or mousedrag
- reset to natural size (DEV)
- canvas crop (EXPERIMENTAL)
Example conf
config: {
'img': {
'max_width': '50px',
'max_height': '50px',
//Image manipulation options - ONLY in default config section
'ui': {
'align': true, // Menu elements to show/hide in menu
'resize': true, //resize buttons
'meta': true,
'margin': true,
'crop':true,
'resizable': true, //resizable ui-drag image
'aspectRatio': true
},
/**
* crop callback is triggered after the user clicked accept to accept his crop
* @param image jquery image object reference
* @param props cropping properties
*/
'onCropped':function (image, props) {},
/**
* reset callback is triggered before the internal reset procedure is applied
* if this function returns true, then the reset has been handled by the callback
* which means that no other reset will be applied
* if false is returned the internal reset procedure will be applied
* @param image jquery image object reference
* @return true if a reset has been applied, false otherwise
*/
'onReset': function (image) { return false; }
}
}
TODO
- resize slider
- canvas resize
Copyright (c) 2010-2011 Gentics Software GmbH, aloha@gentics.com
Author : Nicolas Karageuzian
Contributors :
- Nils Dehl
- Benjamin Athur Lupton
- Christopher Hlubek
- Thomas Lete
- Haymo Meran
- Clemens Prerovsky (base of crop and resize feature is a borrow from cropnresize plugin)
- Norbert Pomaroli (for his patience explaining Selection and Range)
- Kirk Austin who gave the impulsion to dive into html5 canvas
Licensed under the terms of http://www.aloha-editor.org/license.html
Aloha Editor is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.*
Aloha Editor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.