Changeset 607
- Timestamp:
- 04/27/09 20:59:42 (3 years ago)
- Location:
- trunk/src/apps/drupal/wysiwyg/editors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/apps/drupal/wysiwyg/editors/js/wymeditor.js
r603 r607 5 5 */ 6 6 Drupal.wysiwyg.editor.attach.wymeditor = function(context, params, settings) { 7 $('#' + params.field).wymeditor( settings);7 $('#' + params.field).wymeditor(eval(settings)); 8 8 }; 9 9 -
trunk/src/apps/drupal/wysiwyg/editors/wymeditor.inc
r601 r607 95 95 } 96 96 97 // Block formats. 98 if (isset($config['block_formats'])) { 99 $block_formats = explode(',', $config['block_formats']); 100 $containers = array( 101 'p' => 'Paragraph', 102 'h1' => 'Heading_1', 103 'h2' => 'Heading_2', 104 'h3' => 'Heading_3', 105 'h4' => 'Heading_4', 106 'h5' => 'Heading_5', 107 'h6' => 'Heading_6', 108 'pre' => 'Preformatted', 109 'blockquote' => 'Blockquote', 110 'th' => 'Table_Header', 111 ); 112 113 foreach ($block_formats as $block_format) { 114 if (isset($containers[$block_format])) { 115 $container = array( 116 'name' => strtoupper($block_format), 117 'title' => $containers[$block_format], 118 'css' => 'wym_containers_' . $block_format, 119 ); 120 $containersItems[] = $container; 121 } 122 } 123 $settings['containersItems'] = json_encode($containersItems); 124 } 125 126 // CSS classes. 97 127 if (isset($config['css_setting'])) { 98 128 if ($config['css_setting'] == 'theme') {
Note: See TracChangeset
for help on using the changeset viewer.