engine/vendor/assets/javascripts/locomotive/aloha/plugins/common/image
2012-01-16 23:59:59 +01:00
..
css first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
demo first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
img first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
lib first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
nls first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
test first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
vendor first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
AGPL3 first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
LICENSE first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
package.json first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
README.md first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00

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 :

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