| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 // $Id: yui_editor.js,v 1.1.4.18.2.7 2008/11/21 22:54:27 jeffcd Exp $ 2 3 YAHOO.namespace('Drupal'); 4 YAHOO.Drupal.editors = []; 5 YAHOO.Drupal.yui_editor_load = new YAHOO.util.CustomEvent('load', YAHOO.Drupal.editors); 6 7 YAHOO.Drupal.yui_editor = function (id, config) { 8 var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; 9 10 if (Dom.get(id) != null) { 11 var newToolbar = new yui_editor_toolbar; 12 var myConfig = { 13 height: config.height, 14 width: config.width, 15 dompath: parseInt(config.dom), 16 animate: true, 17 handleSubmit: true, 18 markup: config.markup, 19 toolbar: newToolbar.toolbar, 20 ptags: parseInt(config.ptags) 21 }; 22 myConfig.toolbar.titlebar = config.title; 23 myConfig.toolbar.collapse = parseInt(config.collapse); 24 myConfig.toolbar.draggable = parseInt(config.draggable); 25 myConfig.toolbar.buttonType = config.buttonType; 26 27 $(document).ready(function() { 28 $(".grippie").hide(); 29 $(".teaser-checkbox").hide(); 30 YAHOO.util.Dom.setStyle('toggleEditor-' + id, 'margin-top', '1.7em'); 31 }); 32 33 var myEditor = new YAHOO.widget.Editor(id, myConfig); 34 if (! config.titlebar) { 35 myEditor._defaultToolbar.titlebar = config.titlebar; 36 } 37 38 myEditor.render(); 39 40 this.editor = myEditor; 41 this.config = config; 42 this.id = id; 43 } 44 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |