includes/clientside/tinymce/themes/advanced/editor_template_src.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 476 f26a69c40431
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
     1 /**
     1 /**
     2  * $Id: editor_template_src.js 555 2008-01-19 19:08:37Z spocke $
     2  * $Id: editor_template_src.js 619 2008-02-21 13:29:15Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
   493 						t._addStatusBar(tb, o);
   493 						t._addStatusBar(tb, o);
   494 						break;
   494 						break;
   495 
   495 
   496 					default:
   496 					default:
   497 						n = DOM.add(DOM.add(tb, 'tr'), 'td', {
   497 						n = DOM.add(DOM.add(tb, 'tr'), 'td', {
   498 							'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc),
   498 							'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + s['theme_advanced_container_' + c + '_align'] || da
   499 							align : s['theme_advanced_container_' + c + '_align'] || da
       
   500 						});
   499 						});
   501 
   500 
   502 						to = cf.createToolbar("toolbar" + i);
   501 						to = cf.createToolbar("toolbar" + i);
   503 						t._addControls(v, to);
   502 						t._addControls(v, to);
   504 						DOM.setHTML(n, to.renderHTML());
   503 						DOM.setHTML(n, to.renderHTML());
   549 		},
   548 		},
   550 
   549 
   551 		_addToolbars : function(c, o) {
   550 		_addToolbars : function(c, o) {
   552 			var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [];
   551 			var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [];
   553 
   552 
   554 			n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar', align : s.theme_advanced_toolbar_align});
   553 			n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + s.theme_advanced_toolbar_align});
   555 
   554 
   556 			if (!ed.getParam('accessibility_focus') || ed.getParam('tab_focus'))
   555 			if (!ed.getParam('accessibility_focus') || ed.getParam('tab_focus'))
   557 				h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
   556 				h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
   558 
   557 
   559 			h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '<!-- IE -->'));
   558 			h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '<!-- IE -->'));