1/** 2 * Ajax wysiwyg Plugin 3 * 4 * @see http://drupal.org/project/ajax 5 * @see irc://freenode.net/#drupy 6 * @depends Drupal 6 7 * @author brendoncrawford 8 * @note This file uses a 79 character width limit. 9 * 10 */ 11 12/** 13 * Ajax Forms plugin for wysiwyg API 14 * 15 * @param {String} hook 16 * @param {Object} args 17 * @return {Bool} 18 */ 19Drupal.Ajax.plugins.wysiwyg = function(hook, args) { 20 var p, e; 21 if (hook === 'submit') { 22 if (Drupal.wysiwyg && Drupal.wysiwygDetach) { 23 for (w in Drupal.wysiwyg.instances) { 24 p = Drupal.wysiwyg.instances[w]; 25 e = $('#' + p.field); 26 Drupal.wysiwygDetach(e[0], p); 27 } 28 } 29 } 30 return true; 31}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.