Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding link to local page in CKEditor broken
#16
We use absolute because every one uses them, wordpress uses them.

I have no idea why the decision was made, but 3.4 has experimental relative urls to see why.


ALSO
ckeditor gets its links from

PHP Code:
/**
 * List Pages Json
 *
 * This is used by the CKEditor link-local plugin function: ckeditor_add_page_link()
 *
 * @author Joshas: mailto:joshas@gmail.com
 *
 * @since 3.0
 * @uses $pagesArray
 * @uses subval_sort
 * @uses GSDATAPAGESPATH
 * @uses getXML
 *
 * @returns array
 */
function list_pages_json(){    
    GLOBAL 
$pagesArray,$pagesSorted;

    
$pagesArray_tmp = array();
    
$count 0;
    foreach (
$pagesArray as $page) {
        if (
$page['parent'] != '') { 
            
$parentTitle returnPageField($page['parent'], "title");
            
$sort $parentTitle .' '$page['title'];        
        } else {
            
$sort $page['title'];
        }
        
$page array_merge($page, array('sort' => $sort));
        
$pagesArray_tmp[$count] = $page;
        
$count++;
    }
    
$pagesSorted subval_sort($pagesArray_tmp,'sort');

    
$links exec_filter('editorlinks',get_link_menu_array());
    return 
json_encode($links);


as you can see there is a editorlinks filter hook in there
anyone can write a plugin to change this behavior, as of 3.3 or something
( I added it to the wiki, it was missing )
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
RE: Adding link to local page in CKEditor broken - by shawn_a - 2015-01-13, 01:30:49



Users browsing this thread: 1 Guest(s)