Dotclear


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

Insert/update link works fine now

File:
1 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          }, 
Note: See TracChangeset for help on using the changeset viewer.

Sites map