Changeset 327:e7e19491aac8
- Timestamp:
- 06/02/11 09:53:51 (14 years ago)
- Branch:
- wysiwyg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/tiny_mce/plugins/dcControls/editor_plugin.js
r326 r327 56 56 return; 57 57 58 var url = popup_post_url + '?q=' + se.getContent(); 59 58 60 ed.windowManager.open({ 59 file: popup_post_url,61 file: url, 60 62 width: 760, 61 63 height: 500, … … 117 119 118 120 // Register shortcuts 121 ed.addShortcut('ctrl+alt+c', 'dcControls.inlinecode_desc', 'dcCode'); 119 122 ed.addShortcut('ctrl+alt+q', 'dcControls.quote_desc', 'dcQuote'); 120 123 ed.addShortcut('ctrl+alt+l', 'dcControls.link_desc', 'dcExternalLink'); … … 127 130 cm.setActive('inlinecode', n.nodeName == 'CODE' || ed.dom.getParent(n, 'CODE')); 128 131 cm.setActive('quote', n.nodeName == 'Q' || ed.dom.getParent(n, 'Q')); 129 cm.setActive('postlink', n.nodeName == 'A' && !n.name);132 cm.setActive('postlink', n.nodeName == 'A' && n.href.indexOf(ed.settings.post_url_pattern) != -1); 130 133 }); 131 134 }, -
inc/admin/lib.dc.page.php
r326 r327 565 565 'convert_newlines_to_brs' => 'true', 566 566 'paste_auto_cleanup_on_paste' => 'true', 567 'formats' => '{underline: {inline: "ins"},strikethrough: {inline: "del"},inlinecode: {inline: "code"},quote: {inline: "q"}}' 567 'formats' => '{underline: {inline: "ins"},strikethrough: {inline: "del"},inlinecode: {inline: "code"},quote: {inline: "q"}}', 568 'post_url_pattern' => $GLOBALS['core']->blog->getQMarkURL().$GLOBALS['core']->url->getBase('post') 568 569 )); 569 570 $tb->addPlugins('xhtml',array(
Note: See TracChangeset
for help on using the changeset viewer.