Apache-SdnFw

 view release on metacpan or  search on metacpan

lib/Apache/SdnFw/js/controls.js  view on Meta::CPAN

// in the options parameter, e.g.:
// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' });
// will incrementally autocomplete with a comma as the token.
// Additionally, ',' in the above example can be replaced with
// a token array, e.g. { tokens: [',', '\n'] } which
// enables autocompletion on multiple tokens. This is most
// useful when one of the tokens is \n (a newline), as it
// allows smart autocompletion after linebreaks.

if(typeof Effect == 'undefined')
  throw("controls.js requires including script.aculo.us' effects.js library");

var Autocompleter = { };
Autocompleter.Base = Class.create({
  baseInitialize: function(element, update, options) {
    element          = $(element);
    this.element     = element;
    this.update      = $(update);
    this.hasFocus    = false;
    this.changed     = false;
    this.active      = false;

lib/Apache/SdnFw/js/controls.js  view on Meta::CPAN

  loadCollection: function() {
    this._form.addClassName(this.options.loadingClassName);
    this.showLoadingText(this.options.loadingCollectionText);
    var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
    Object.extend(options, {
      parameters: 'editorId=' + encodeURIComponent(this.element.id),
      onComplete: Prototype.emptyFunction,
      onSuccess: function(transport) {
        var js = transport.responseText.strip();
        if (!/^\[.*\]$/.test(js)) // TODO: improve sanity check
          throw('Server returned an invalid collection representation.');
        this._collection = eval(js);
        this.checkForExternalText();
      }.bind(this),
      onFailure: this.onFailure
    });
    new Ajax.Request(this.options.loadCollectionURL, options);
  },

  showLoadingText: function(text) {
    this._controls.editor.disabled = true;

lib/Apache/SdnFw/js/dragdrop.js  view on Meta::CPAN

// script.aculo.us dragdrop.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008

// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//           (c) 2005-2008 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

if(Object.isUndefined(Effect))
  throw("dragdrop.js requires including script.aculo.us' effects.js library");

var Droppables = {
  drops: [],

  remove: function(element) {
    this.drops = this.drops.reject(function(d) { return d.element==$(element) });
  },

  add: function(element) {
    element = $(element);

lib/Apache/SdnFw/js/effects.js  view on Meta::CPAN

Effect.Event = Class.create(Effect.Base, {
  initialize: function() {
    this.start(Object.extend({ duration: 0 }, arguments[0] || { }));
  },
  update: Prototype.emptyFunction
});

Effect.Opacity = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    // make this work on IE on elements without 'layout'
    if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
      this.element.setStyle({zoom: 1});
    var options = Object.extend({
      from: this.element.getOpacity() || 0.0,
      to:   1.0
    }, arguments[1] || { });
    this.start(options);
  },
  update: function(position) {
    this.element.setOpacity(position);
  }
});

Effect.Move = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      x:    0,
      y:    0,
      mode: 'relative'
    }, arguments[1] || { });
    this.start(options);
  },
  setup: function() {
    this.element.makePositioned();
    this.originalLeft = parseFloat(this.element.getStyle('left') || '0');

lib/Apache/SdnFw/js/effects.js  view on Meta::CPAN


// for backwards compatibility
Effect.MoveBy = function(element, toTop, toLeft) {
  return new Effect.Move(element,
    Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
};

Effect.Scale = Class.create(Effect.Base, {
  initialize: function(element, percent) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      scaleX: true,
      scaleY: true,
      scaleContent: true,
      scaleFromCenter: false,
      scaleMode: 'box',        // 'box' or 'contents' or { } with provided values
      scaleFrom: 100.0,
      scaleTo:   percent
    }, arguments[2] || { });
    this.start(options);

lib/Apache/SdnFw/js/effects.js  view on Meta::CPAN

        if (this.options.scaleX) d.left = -leftd + 'px';
      }
    }
    this.element.setStyle(d);
  }
});

Effect.Highlight = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
    this.start(options);
  },
  setup: function() {
    // Prevent executing on elements not in the layout flow
    if (this.element.getStyle('display')=='none') { this.cancel(); return; }
    // Disable background image during the effect
    this.oldStyle = { };
    if (!this.options.keepBackgroundImage) {
      this.oldStyle.backgroundImage = this.element.getStyle('background-image');

lib/Apache/SdnFw/js/effects.js  view on Meta::CPAN

      scaleY: false,
      afterFinishInternal: function(effect) {
        effect.element.hide().undoClipping().setStyle(oldStyle);
      } });
  }}, arguments[1] || { }));
};

Effect.Morph = Class.create(Effect.Base, {
  initialize: function(element) {
    this.element = $(element);
    if (!this.element) throw(Effect._elementDoesNotExistError);
    var options = Object.extend({
      style: { }
    }, arguments[1] || { });

    if (!Object.isString(options.style)) this.style = $H(options.style);
    else {
      if (options.style.include(':'))
        this.style = options.style.parseStyle();
      else {
        this.element.addClassName(options.style);

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN

};

Object.extend(Object, {
  inspect: function(object) {
    try {
      if (Object.isUndefined(object)) return 'undefined';
      if (object === null) return 'null';
      return object.inspect ? object.inspect() : String(object);
    } catch (e) {
      if (e instanceof RangeError) return '...';
      throw e;
    }
  },

  toJSON: function(object) {
    var type = typeof object;
    switch (type) {
      case 'undefined':
      case 'function':
      case 'unknown': return;
      case 'boolean': return object.toString();

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN

    if (str.blank()) return false;
    str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
    return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
  },

  evalJSON: function(sanitize) {
    var json = this.unfilterJSON();
    try {
      if (!sanitize || json.isJSON()) return eval('(' + json + ')');
    } catch (e) { }
    throw new SyntaxError('Badly formed JSON string: ' + this.inspect());
  },

  include: function(pattern) {
    return this.indexOf(pattern) > -1;
  },

  startsWith: function(pattern) {
    return this.indexOf(pattern) === 0;
  },

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN

var $break = { };

var Enumerable = {
  each: function(iterator, context) {
    var index = 0;
    try {
      this._each(function(value) {
        iterator.call(context, value, index++);
      });
    } catch (e) {
      if (e != $break) throw e;
    }
    return this;
  },

  eachSlice: function(number, iterator, context) {
    var index = -number, slices = [], array = this.toArray();
    if (number < 1) return array;
    while ((index += number) < array.length)
      slices.push(array.slice(index, index+number));
    return slices.collect(iterator, context);
  },

  all: function(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = true;
    this.each(function(value, index) {
      result = result && !!iterator.call(context, value, index);
      if (!result) throw $break;
    });
    return result;
  },

  any: function(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = false;
    this.each(function(value, index) {
      if (result = !!iterator.call(context, value, index))
        throw $break;
    });
    return result;
  },

  collect: function(iterator, context) {
    iterator = iterator || Prototype.K;
    var results = [];
    this.each(function(value, index) {
      results.push(iterator.call(context, value, index));
    });
    return results;
  },

  detect: function(iterator, context) {
    var result;
    this.each(function(value, index) {
      if (iterator.call(context, value, index)) {
        result = value;
        throw $break;
      }
    });
    return result;
  },

  findAll: function(iterator, context) {
    var results = [];
    this.each(function(value, index) {
      if (iterator.call(context, value, index))
        results.push(value);

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN

  },

  include: function(object) {
    if (Object.isFunction(this.indexOf))
      if (this.indexOf(object) != -1) return true;

    var found = false;
    this.each(function(value) {
      if (value == object) {
        found = true;
        throw $break;
      }
    });
    return found;
  },

  inGroupsOf: function(number, fillWith) {
    fillWith = Object.isUndefined(fillWith) ? null : fillWith;
    return this.eachSlice(number, function(slice) {
      while(slice.length < number) slice.push(fillWith);
      return slice;

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN

    }
  );
}

else if (Prototype.Browser.IE) {
  // IE doesn't report offsets correctly for static elements, so we change them
  // to "relative" to get the values, then change them back.
  Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap(
    function(proceed, element) {
      element = $(element);
      // IE throws an error if element is not in document
      try { element.offsetParent }
      catch(e) { return $(document.body) }
      var position = element.getStyle('position');
      if (position !== 'static') return proceed(element);
      element.setStyle({ position: 'relative' });
      var value = proceed(element);
      element.setStyle({ position: position });
      return value;
    }
  );

lib/Apache/SdnFw/js/prototype.js  view on Meta::CPAN


  Bottom: function(element, content) {
    return Element.insert(element, {bottom:content});
  },

  After: function(element, content) {
    return Element.insert(element, {after:content});
  }
};

var $continue = new Error('"throw $continue" is deprecated, use "return" instead');

// This should be moved to script.aculo.us; notice the deprecated methods
// further below, that map to the newer Element methods.
var Position = {
  // set to true if needed, warning: firefox performance problems
  // NOT neeeded for page scrolling, only if draggable contained in
  // scrollable elements
  includeScrollOffsets: false,

  // must be called before calling withinIncludingScrolloffset, every time the

lib/Apache/SdnFw/js/scriptaculous.js  view on Meta::CPAN

      var v = versionString.replace(/_.*|\./g, '');
      v = parseInt(v + '0'.times(4-v.length));
      return versionString.indexOf('_') > -1 ? v-1 : v;
    }

    if((typeof Prototype=='undefined') ||
       (typeof Element == 'undefined') ||
       (typeof Element.Methods=='undefined') ||
       (convertVersionString(Prototype.Version) <
        convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
       throw("script.aculo.us requires the Prototype JavaScript framework >= " +
        Scriptaculous.REQUIRED_PROTOTYPE);

    var js = /scriptaculous\.js(\?.*)?$/;
    $$('head script[src]').findAll(function(s) {
      return s.src.match(js);
    }).each(function(s) {
      var path = s.src.replace(js, ''),
      includes = s.src.match(/\?.*load=([a-z,]*)/);
      (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
       function(include) { Scriptaculous.require(path+include+'.js') });

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed bug where it wasn't possible to toggle of the current font size/family/style by clicking the title item.
	Fixed bug where the abbr element wouldn't get serialized correctly on IE6.
	Fixed so that the examples checks if they are executed from the local file system since that might not work properly.
Version 3.3.7 (2010-06-10)
	Fixed bug where context menu would produce an error on IE if you right clicked twice and left clicked once.
	Fixed bug where resizing of the window on WebKit browsers in fullscreen mode wouldn't position the statusbar correctly.
	Fixed bug where IE would produce an error if the editor was empty and you where undoing to that initial level.
	Fixed bug where setting the table background on gecko would produce \" entities inside the url style property.
	Fixed bug where the button states wouldn't be updated correctly on IE if you placed the caret inside the new element.
	Fixed bug where undo levels wasn't properly added after applying styles or font sizes.
	Fixed bug where IE would throw an error if you used "select all" on empty elements and applied formatting to that.
	Fixed bug where IE could select one extra character when you did a bookmark call on a caret location.
	Fixed bug where IE could produce a script error on delete since it would sometimes produce an invalid DOM.
	Fixed bug where IE would return the wrong start element if the whole element was selected.
	Fixed bug where formatting states wasn't updated on IE if you pressed enter at the end of a block with formatting.
	Fixed bug where submenus for the context menu wasn't removed correctly when the editor was destroyed.
	Fixed bug where Gecko could select the wrong element after applying format to multiple elements.
	Fixed bug where Gecko would delete parts of the previous element if the selection range was a element selection.
	Fixed bug where Gecko would not merge paragraph elements correctly if they contained br elements.
	Fixed bug where the cleanup button could produce span artifacts if you pressed it twice in a row.
	Fixed bug where the fullpage plugin header/footer would be have it's header reseted to it's initial state on undo.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed so selected rows and cells gets updated using the row/cell properties dialogs.
Version 3.3b2 (2010-02-04)
	Fixed bug where sometimes img elements would be removed by split method in DOMUtils.
	Fixed bug where merging of span elements could occur on bookmark nodes.
	Fixed bug where classes wasn't properly removed when removeformat was used on IE 6.
	Fixed bug where multiple calls to an tinyMCE.init with mode set to exact could produce the same unique ID.
	Fixed bug with the IE selection implementation when it was feeded an document range.
	Fixed bug where block elements formatting wasn't properly removed by removeformat on all browsers.
	Fixed bug where selection location was lost if you performed a manual cleanup.
	Fixed bug where removeformat wouldn't remove span elements within styled block elements.
	Fixed bug where an error would be thrown if you clicked on the separator lines in menus.
	Fixed bug with the jQuery plugin adding always adding a querystring value to other resources.
	Fixed bug where IE would produce an error message if you had an empty editor instance.
	Fixed bug where Shift+Enter didn't produce br elements on WebKit browsers.
	Fixed bug where a temporary marker element wasn't removed by the paste plugin.
	Fixed bug where inserting a table would produce two undo levels instead of one.
Version 3.3b1 (2010-01-25)
	Added new text formatting engine. Fixes a lot of browser quirks and adds new possibilities.
	Added new advlist plugin that enables you to set the formats of list elements.
	Added new paste plugin logic that enables you to retain style information from Office.
	Added new autosave plugin logic that automatically saves contents in local storage.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

Version 3.2.2 (2009-03-05)
	Added new CSS selector engine. Sizzle the same one that jQuery and other libraries are using.
	Added new is and getParents methods to the DOMUtils class. These use the new Sizzle engine to select elements.
	Added new removeformat_selector option, enables you to specify a CSS selector pattern of elements to remove when using removeformat.
	Fixed so the getParent method can take CSS expressions when selecting it's parents.
	Added new ant based build process, includes a new javabased preprocessor and a yuicompressor ant task.
	Moved the tab_focus logic into a plugin called tabfocus, so the old tab_focus option has been removed from the core.
	Replaced the TinyMCE custom unit testing framework with Qunit and rewrote all tests to match the new logic.
	Moved the examples/testcases to a root directory called tests since it now includes slickspeed.
	Fixed bug where nbsp wasn't replaced correctly in ForceBlocks.js. Patch contributed by thorn.
	Fixed bug where an dom exception would be thrown in Gecko when the theme_advanced_path path was set to false under xml application mode.
	Fixed bug where it was impossible to get out of a link at the end of a block element in Gecko.
	Fixed bug where the latest WebKit nightly would fail when changing font size and font family.
	Fixed bug where the latest WebKit nightly would fail when opening dialogs due to changes to the arguments object.
	Fixed bug where paragraphs wasn't added to elements positioned absolute using classes.
	Fixed bug where font size values with dot's like 1.4em would produce a class instead of the style value.
	Fixed bug where IE 8 would return an incorrect position for elements.
	Fixed bug where IE 8 would render colorpicker/filepicker icons incorrectly.
	Fixed bug where trailing slashes for directories in URLs would be removed.
	Fixed bug where autostart and other boolean values in the media dialog wouldn't be stored/parsed correctly.
	Fixed bug where the repaint call for the media plugin wouldn't be executed due to a typo in the source.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed bug where replace button kept inserting the replacement text even if there is no more matches.
	Fixed bug with fullpage plugin where value wasn't set correctly. Patch contributed by Pascal Chantelois.
	Fixed bug where the dom utils setAttrib method call could produce an exception if the input was null/false.
	Fixed bug where pressing backspace would sometimes remove one extra character in Gecko browsers.
	Fixed bug where the native confirm/alert boxes would move focus to parent document if fired in dialogs.
	Fixed bug where Opera 9.50 was telling you that the selection is collapsed even when it isn't.
	Fixed bug where mceInsertContent would break up existing elements in Opera and Gecko.
	Fixed bug where TinyMCE fails to detect some keyboard combos on Mac, contributed by MattyRob.
	Fixed bug where replace all didn't move the caret to beginning of text before searching.
	Fixed bug where the oninit callback wasn't executed correctly when the strict_loading_mode option was used, thanks goes to Nicholas Oxhoej.
	Fixed bug where a access denied exception was thrown if some other script specified document.domain before loading TinyMCE.
	Fixed so setting language to empty string will skip language loading if translations are made by some backend.
	Fixed so dialog_type is automatically modal if you use the inlinepopups plugin use dialog_type : "window" to re-enable the old behavior.
Version 3.1.0.1 (2008-06-18)
	Fixed bug where the Opera line break fix didn't work correctly on Mac OS X and Unix.
	Fixed bug where IE was producing the default value the maxlength attribute of input elements.
Version 3.1.0 (2008-06-17)
	Fixed bug where the paste as text didn't work correctly it encoded produced paragraphs and br elements.
	Fixed bug where embed element in XHTML style didn't work correctly in the media plugin.
	Fixed bug where style elements was forced empty in IE. The will now be wrapped in a comment just like script elements.
	Fixed bug where some script elements wrapped in CDATA could fail to be serialized correctly.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed so tabbing inside an inline popups wont focus the resize anchor elements.
	Fixed so you can press ok in inline alert messages using the return/enter key.
	Fixed so textareas can be set to non px or % sizes for example em, cm, pt etc.
	Fixed so non pixel values can be used in width/height properties for tables.
	Fixed so the custom context menu can be disabled by holding down ctrl key while clicking.
	Fixed so the layout for the o2k7 skin looks better if you don't have separators before and after list boxes.
	Fixed so the sub classes get a copy of the super class constructor function to ease up type checking.
	Fixed so font sizes for the format block previews are normalized according to http://www.w3.org/TR/CSS21/sample.html (it can be overridden).
	Fixed so font sizes for h1-h6 in the default content.css is normalized according to http://www.w3.org/TR/CSS21/sample.html (it can be overridden).
Version 3.0.3 (2008-03-03)
	Fixed bug where an error about document.domain would be thrown if TinyMCE was loaded using a different port.
	Fixed bug where mode exact would convert textareas without id or name if the elements option was omitted.
	Fixed bug where the caret could be placed at an incorrect location when backspace was used in Gecko.
	Fixed bug where local file:// URLs where converted into absolute domain URLs.
	Fixed bug where an error was produced if a editor was removed inside an editor command.
	Fixed bug where force_p_newlines didn't effect the paste plugin correctly.
	Fixed bug where the paste plugin was producing an exception on IE if you pasted contents with middots.
	Fixed bug where delete key could produce exceptions in Gecko sometimes due to the fix for the table cell bug.
	Fixed bug where the layer plugin would produce an visual add class called mceVisualAid this one is now renamed to mceItemVisualAid to mark it internal.
	Fixed bug where TinyMCE wouldn't initialize properly if ActiveX controls was disabled in IE.
	Fixed bug where tables and other elements that had visual aids on them would produce an extra space after any custom class names.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed bug where the CSS for abbr elements wasn't applied correctly in IE.
	Fixed bug where mceAddControl on element inside a hidden container produced errors.
	Fixed bug where closed anchors like <a /> produced strange results.
	Fixed bug where caret would jump to the top of the editor if enter was pressed a the end of a list.
	Fixed bug where remove editor failed if the editor wasn't properly initialized.
	Fixed bug where render call on for a non existing element produced exception.
	Fixed bug where parent window was hidden when the color picker was used in a non inlinepopups setup.
	Fixed bug where onchange event wasn't fired correctly on IE when color picker was used in dialogs.
	Fixed bug where save plugin could not save contents if the converted element wasn't an textarea.
	Fixed bug where events might be fired even after an editor instance was removed such as blur events.
	Fixed bug where an exception about undefined undo levels could be throwed sometimes.
	Fixed bug where the plugin_preview_pageurl option didn't work.
	Fixed bug where adding/removing an editor instance very fast could produce problems.
	Fixed bug where the link button was highlighted when an anchor element was selected.
	Fixed bug where the selected contents where removed if a new anchor element was added.
	Fixed bug where splitbuttons where rendered one pixel down in the default theme.
	Fixed bug where some buttons where placed at incorrect positions in the o2k7 theme.
	Fixed bug that made it impossible to visually disable a custom button that used an image instead of CSS sprites.
	Fixed bug where it wasn't possible to press delete/backspace if the editor was added+removed and re-added due to a FF bug.
	Fixed bug where an entities option with only 38,amp,60,lt,62,gt would fail in IE.
	Fixed bug where innerHTML sometimes generated unknown runtime error on IE.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed support for loading themes from external URLs.
	Fixed bug where setOuterHTML didn't work correctly when multiple elements where passed to it.
	Fixed bug with visualchars plugin was moving elements around in the DOM.
	Fixed bug with DIV elements that got converted into editors on IE.
	Fixed bug with paste plugin using the old event API.
	Fixed bug where the spellchecker was removing the word when it was ignored.
	Fixed bug where fullscreen wasn't working properly.
	Fixed bug where the base href element and attribute was ignored.
	Fixed bug where redo function didn't work in IE.
	Fixed bug where content_css didn't work as previous 2.x branch.
	Fixed bug where preview dialog was throwing errors if the content_css wasn't defined.
	Fixed bug where the theme_advanced_path option didn't work like the 2.x branch.
	Fixed bug where the theme_advanced_statusbar_location was called theme_advanced_status_location.
	Fixed bug where the strict_loading_mode option didn't work if you created editors dynamically without using the EditorManager.
	Fixed bug where some language values wasn't translated such as insert and update in dialogs.
	Fixed bug where some image attributes wasn't stored correctly when inserting an image.
	Fixed bug where fullscreen mode didn't restore scrollbars when disabled.
	Fixed bug where there was no visual representation for tab focus in toolbars on IE.
	Fixed bug where HR elements wasn't treated as block elements so forced_root_block would fail on these.
	Fixed bug where autosave presented warning message even when the form was submitted normally.
	Fixed typo of openBrower it's now openBrowser in form_utils.js.

lib/Apache/SdnFw/js/tinymce/changelog.txt  view on Meta::CPAN

	Fixed bug where listbox menus was clipped by other TinyMCE instances or relative elements in IE.
	Fixed bug where listboxes wasn't updated correctly when the a value wasn't found by select.
	Fixed various CSS issues that produced odd rendering bugs in IE.
	Fixed issues with tinymce.ui.DropMenu class, it required some optional settings to be specified.
	Fixed so multiple blockquotes can be removed with a easier method than before.
	Optimized some of the core API to boost performance.
	Removed some functions from the core API that wasn't needed.
Version 3.0a2 (2007-11-02)
	Fixed critical bug where IE generaded an error on a hasAttribute call in the serialization engine.
	Fixed critical bug where some dialogs didn't open in the non dev package.
	Fixed bug when using the theme_advanced_styles option. Error was thrown in some dialogs.
	Fixed bug where the close buttons produced an error when native windows where used.
	Fixed bug in default skin so that split buttons gets activated correctly.
	Fixed so plugins can be loaded from external urls outsite the plugins directory.
Version 3.0a1 (2007-11-01)
	Rewrote the core and most of the plugins and themes from scratch.
	Added new and improved serialization engine, faster and more powerful.
	Added new internal event system, things like editor.onClick.add(func).
	Added new inlinepopups plugin, the dialogs are now skinnable and uses clearlooks2 as default.
	Added new contextmenu plugin, context menus can now have submenus and plugins can add items on the fly.
	Added new skin support for the simple and advanced themes you can alter the whole UI using CSS.

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce.js  view on Meta::CPAN

(function(c){var a=/^\s*|\s*$/g,d;var b={majorVersion:"3",minorVersion:"3.8",releaseDate:"2010-06-30",_init:function(){var r=this,o=document,m=navigator,f=m.userAgent,l,e,k,j,h,q;r.isOpera=c.opera&&opera.buildNumber;r.isWebKit=/WebKit/.test(f);r.isIE...

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN

			var o;

			n = this.get(n);

			if (!n)
				return [];

			if (isIE) {
				o = [];

				// Object will throw exception in IE
				if (n.nodeName == 'OBJECT')
					return n.attributes;

				// IE doesn't keep the selected attribute if you clone option elements
				if (n.nodeName === 'OPTION' && this.getAttrib(n, 'selected'))
					o.push({specified : 1, nodeName : 'selected'});

				// It's crazy that this is faster in IE but it's because it returns all attributes all the time
				n.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi, '').replace(/[\w:\-]+/gi, function(a) {
					o.push({specified : 1, nodeName : a});

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN

				// Make HTML element unselectable since we are going to handle selection by hand
				doc.documentElement.unselectable = TRUE;

				// Return range from point or null if it failed
				function rngFromPoint(x, y) {
					var rng = body.createTextRange();

					try {
						rng.moveToPoint(x, y);
					} catch (ex) {
						// IE sometimes throws and exception, so lets just ignore it
						rng = null;
					}

					return rng;
				};

				// Fires while the selection is changing
				function selectionChange(e) {
					var pointRng;

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN

			}
		}

		old = expr;
	}

	return curLoop;
};

Sizzle.error = function( msg ) {
	throw "Syntax error, unrecognized expression: " + msg;
};

var Expr = Sizzle.selectors = {
	order: [ "ID", "NAME", "TAG" ],
	match: {
		ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
		CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
		NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
		ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
		TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN

			var t = this, s, r;

			// Found tridentSel object then we need to use that one
			if (w3c && t.tridentSel)
				return t.tridentSel.getRangeAt(0);

			try {
				if (s = t.getSel())
					r = s.rangeCount > 0 ? s.getRangeAt(0) : (s.createRange ? s.createRange() : t.win.document.createRange());
			} catch (ex) {
				// IE throws unspecified error here if TinyMCE is placed in a frame/iframe
			}

			// No range found then create an empty one
			// This can occur when the editor is placed in a hidden container element on Gecko
			// Or on IE when there was an exception
			if (!r)
				r = t.win.document.createRange ? t.win.document.createRange() : t.win.document.body.createTextRange();

			if (t.selectedRange && t.explicitRange) {
				if (r.compareBoundaryPoints(r.START_TO_START, t.selectedRange) === 0 && r.compareBoundaryPoints(r.END_TO_END, t.selectedRange) === 0) {

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN

		Serializer : function(s) {
			var t = this;

			t.key = 0;
			t.onPreProcess = new Dispatcher(t);
			t.onPostProcess = new Dispatcher(t);

			try {
				t.writer = new tinymce.dom.XMLWriter();
			} catch (ex) {
				// IE might throw exception if ActiveX is disabled so we then switch to the slightly slower StringWriter
				t.writer = new tinymce.dom.StringWriter();
			}

			// Default settings
			t.settings = s = extend({
				dom : tinymce.DOM,
				valid_nodes : 0,
				node_filter : 0,
				attr_filter : 0,
				invalid_attrs : /^(_mce_|_moz_|sizset|sizcache)/,

lib/Apache/SdnFw/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js  view on Meta::CPAN


				t.onKeyUp.add(function(ed, e) {
					if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45 || e.ctrlKey)
						addUndo();
				});

				t.onKeyDown.add(function(ed, e) {
					var rng, parent, bookmark;

					// IE has a really odd bug where the DOM might include an node that doesn't have
					// a proper structure. If you try to access nodeValue it would throw an illegal value exception.
					// This seems to only happen when you delete contents and it seems to be avoidable if you refresh the element
					// after you delete contents from it. See: #3008923
					if (isIE && e.keyCode == 46) {
						rng = t.selection.getRng();

						if (rng.parentElement) {
							parent = rng.parentElement();

							// Select next word when ctrl key is used in combo with delete
							if (e.ctrlKey) {



( run in 0.497 second using v1.01-cache-2.11-cpan-496ff517765 )