Dotclear

Changeset 327:e7e19491aac8


Ignore:
Timestamp:
06/02/11 09:53:51 (14 years ago)
Author:
Tomtom33 <tbouron@…>
Branch:
wysiwyg
Message:

Insert/update link works fine now

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/tiny_mce/plugins/dcControls/editor_plugin.js

    r326 r327  
    5656                         return; 
    5757                     
     58                    var url = popup_post_url + '?q=' + se.getContent(); 
     59                     
    5860                    ed.windowManager.open({ 
    59                          file: popup_post_url, 
     61                         file: url, 
    6062                         width: 760, 
    6163                         height: 500, 
     
    117119                
    118120               // Register shortcuts 
     121               ed.addShortcut('ctrl+alt+c', 'dcControls.inlinecode_desc', 'dcCode'); 
    119122               ed.addShortcut('ctrl+alt+q', 'dcControls.quote_desc', 'dcQuote'); 
    120123               ed.addShortcut('ctrl+alt+l', 'dcControls.link_desc', 'dcExternalLink'); 
     
    127130                    cm.setActive('inlinecode', n.nodeName == 'CODE' || ed.dom.getParent(n, 'CODE')); 
    128131                    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); 
    130133               }); 
    131134          }, 
  • inc/admin/lib.dc.page.php

    r326 r327  
    565565               'convert_newlines_to_brs' => 'true', 
    566566               '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') 
    568569          )); 
    569570          $tb->addPlugins('xhtml',array( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map