Changeset 326:3138de12835e for admin
- Timestamp:
- 06/01/11 18:33:48 (14 years ago)
- Branch:
- wysiwyg
- Location:
- admin
- Files:
-
- 11 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r317 r326 80 80 var formatField = $('#post_format').get(0); 81 81 $(formatField).change(function() { 82 $('#post_excerpt').dctoolbar manager('switch',$(this).val());83 $('#post_content').dctoolbar manager('switch',$(this).val());82 $('#post_excerpt').dctoolbar('switch',$(this).val()); 83 $('#post_content').dctoolbar('switch',$(this).val()); 84 84 }); 85 85 86 86 // Init toolbars 87 $('#post_excerpt,#post_content').dctoolbarmanager({ 88 id: 'tinymce', 89 mode: $(formatField).val(), 90 context: 'post' 91 }); 87 $('#post_excerpt,#post_content').dctoolbar({formatter: $(formatField).val()}); 92 88 } 93 89 94 90 if (document.getElementById('comment_content')) { 95 $('#comment_content').dctoolbarmanager({mode:'xhtml'});91 //$('#comment_content').dctoolbar({formatter:'xhtml'}); 96 92 } 97 93 … … 128 124 // We load toolbar on excerpt only when it's ready 129 125 $('#excerpt-area label').toggleWithLegend($('#excerpt-area').children().not('label'),{ 130 fn: function() { $('#post_excerpt').dctoolbar manager('draw'); },126 fn: function() { $('#post_excerpt').dctoolbar('draw'); }, 131 127 cookie: 'dcx_post_excerpt', 132 128 hide: $('#post_excerpt').val() == '' 133 129 }); 130 $('#post_content').dctoolbar('draw'); 134 131 135 132 // Replace attachment remove links by a POST form submit -
admin/media_item.php
r217 r326 160 160 if ($popup) { 161 161 $starting_scripts .= 162 dcPage::jsLoad('js/ jsToolBar/popup_media.js');162 dcPage::jsLoad('js/tiny_mce/plugins/dcControls/js/popup_media.js'); 163 163 } 164 164 call_user_func($open_f,__('Media manager'), -
admin/popup_link.php
r68 r326 19 19 $title = !empty($_GET['title']) ? $_GET['title'] : ''; 20 20 21 dcPage::openPopup(__('Add a link'),dcPage::jsLoad('js/ jsToolBar/popup_link.js'));21 dcPage::openPopup(__('Add a link'),dcPage::jsLoad('js/tiny_mce/plugins/dcControls/js/popup_link.js')); 22 22 23 23 echo '<h2>'.__('Add a link').'</h2>'; -
admin/popup_posts.php
r68 r326 31 31 dcPage::openPopup(__('Add a link to an entry'), 32 32 dcPage::jsLoad('js/_posts_list.js'). 33 dcPage::jsLoad('js/ jsToolBar/popup_posts.js'));33 dcPage::jsLoad('js/tiny_mce/plugins/dcControls/js/popup_posts.js')); 34 34 35 35 echo '<h2>'.__('Add a link to an entry').'</h2>';
Note: See TracChangeset
for help on using the changeset viewer.