Ticket #6737: base-url.patch

File base-url.patch, 1.2 kB (added by azaozz, 5 months ago)
  • tiny_mce_config.php

    old new  
    152152        'dialog_type' => 'modal', 
    153153        'relative_urls' => false, 
    154154        'remove_script_host' => false, 
    155         'convert_urls' => false, 
    156155        'apply_source_formatting' => false, 
    157156        'remove_linebreaks' => true, 
    158157        'paste_convert_middot_lists' => true, 
     
    171170        'old_cache_max' => '1' // number of cache files to keep 
    172171); 
    173172 
     173// URL conversion settings 
     174if ( get_option('use_balanceTags') ) 
     175        $initArray['document_base_url'] = get_option('siteurl'); 
     176else $initArray['convert_urls'] = false; 
     177 
    174178// For people who really REALLY know what they're doing with TinyMCE 
    175179// You can modify initArray to add, remove, change elements of the config before tinyMCE.init (changed from action to filter) 
    176180$initArray = apply_filters('tiny_mce_before_init', $initArray); 
     
    223227// Setup cache info 
    224228if ( $disk_cache ) { 
    225229 
    226         $cacheKey = apply_filters('tiny_mce_version', '20080414'); 
     230        $cacheKey = apply_filters('tiny_mce_version', '20080416'); 
    227231 
    228232        foreach ( $initArray as $v ) 
    229233                $cacheKey .= $v;