Changeset 119703 in spip-zone


Ignore:
Timestamp:
Jan 9, 2020, 1:36:35 PM (10 months ago)
Author:
real3t@…
Message:

[CKEditor 4 : parcours des fichiers déjà sur le serveur OK

Location:
_plugins_/ckeditor-spip-plugin/branches/ckeditor-4.x
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/ckeditor-spip-plugin/branches/ckeditor-4.x/filebrowser.html

    r119702 r119703  
    1 #CACHE{0}[(#HTTP_HEADER{Content-Type: application/json [; charset=(#CHARSET)]})]<BOUCLE_si(CONDITION){si #SESSION{statut}|<{2}}><?php
     1#CACHE{0}<?php if (_request('mode') == 'direct') { ?>[(#HTTP_HEADER{Content-Type: application/json [; charset=(#CHARSET)]})]<?php } else { ?>[(#HTTP_HEADER{Content-type: text/html[; charset=(#CHARSET)]})]<?php } ?><BOUCLE_si(CONDITION){si #SESSION{statut}|<{2}}><?php
    22        $funcNum = intval(_request('CKEditorFuncNum')) ;
    33        $CKEditor = _request('CKEditor') ;
     
    3838        $request_dir = preg_replace(array('#^(\.\./)+#', '#/(\.\./)+#'), array('', '/'),  $request_dir) ;
    3939        $dir_name = _FILEBROWSER_DIR .'/'. $request_dir ;
     40       
     41        if (_request('mode') != 'direct') {
     42?><!DOCTYPE html
     43     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     44     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     45<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang ; ?>" lang="<?php echo $lang ; ?>">
     46<head>
     47        <title><?php echo _T('ckeditor:explorateur_titre'); ?></title>
     48        <link rel="stylesheet" type="text/css" href="#CHEMIN{css/filebrowser.css}" />
     49        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
     50        <script type="text/javascript"> 
     51        function loadFile(url) { 
     52                var parent_window = (window.parent == window) ? window.opener : window.parent ; 
     53                parent_window.CKEDITOR.tools.callFunction( <?php echo intval(_request('CKEditorFuncNum')); ?>, url, ''); 
     54                window.close(); 
     55        } 
     56        </script>
     57</head>
     58<body>
     59<?php
     60        }
    4061
    4162        $autorise_parcours = ckeditor_lire_config('autorise_parcours', _CKE_PARCOURS_DEF) ;
     
    221242                print("<p>"._T('ckeditor:acces_interdit')."</p>") ;
    222243        }
     244        if (_request('mode') != 'direct') {
     245?>
     246</body>
     247</html>
     248<?php
     249        }
    223250?></BOUCLE_si>
  • _plugins_/ckeditor-spip-plugin/branches/ckeditor-4.x/paquet.xml

    r119697 r119703  
    22        prefix="ckeditor"
    33        categorie="edition"
    4         version="1.0.4"
     4        version="1.0.5"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.2.*]"
  • _plugins_/ckeditor-spip-plugin/branches/ckeditor-4.x/plugin.xml

    r119697 r119703  
    22        <nom><multi>[fr]CKEditor pour SPIP[en]CKEditor for SPIP[ar]CKEDITOR &#1604; SPIP</multi></nom>
    33        <auteur>Auteurs : [Fr&#233;d&#233;ric Bonnaud->mailto:fred@lea-linux.org], [Mehdi Cherifi (Superyms)->mailto:superyms@gmail.com], [Emmanuel Dreyfus->mailto:manu@netbsd.org]</auteur>
    4         <version>1.0.3</version>
    5         <version_base>1.0.4</version_base>
     4        <version>1.0.5</version>
     5        <version_base>1.0.2</version_base>
    66        <etat>stable</etat>
    77        <description>
Note: See TracChangeset for help on using the changeset viewer.