/**
* @fileoverview jQuery wrapper around the Rich text editor
* Usage:
* 1) $(selector).Arte()
* Converts the matched elements into rich text editor using default options or returns and existing instance
* 2) $(selector).Arte({ options });
* Converts the matched elements into rich text editor using the options supplied or returns and existing instance
* 3) $(selector).Arte(command, arguments)
* Execute a rich text command with arguments
*/
(function($) {
$.Arte = $.Arte || {};
$.fn.Arte = function(options, args) {
var result = [];
rangy.init();
this.each(function() {
var $this = $(this);
var editor = $this.data("Arte");
if (options && typeof(options) === "string") {