Esempio n. 1
0
 static function InlineEdit_Text($scripts)
 {
     includeFile('tool/editing.php');
     // autocomplete
     echo gp_edit::AutoCompleteValues(true);
     // ckeditor basepath and configuration
     $options = array('extraPlugins' => 'sharedspace', 'sharedSpaces' => array('top' => 'ckeditor_top', 'bottom' => ' ckeditor_bottom'));
     $ckeditor_basepath = common::GetDir('/include/thirdparty/ckeditor_34/');
     echo 'CKEDITOR_BASEPATH = ' . gpAjax::quote($ckeditor_basepath) . ';';
     echo 'var gp_ckconfig = ' . gp_edit::CKConfig($options, 'json', $plugins) . ';';
     // extra plugins
     echo 'var gp_add_plugins = ' . json_encode($plugins) . ';';
     // scripts
     $scripts[] = '/include/thirdparty/ckeditor_34/ckeditor.js';
     $scripts[] = '/include/js/ckeditor_config.js';
     $scripts[] = '/include/js/inline_edit/inlineck.js';
     return $scripts;
 }
Esempio n. 2
0
 function InlineEdit_Text($scripts)
 {
     includeFile('tool/editing.php');
     //autocomplete
     echo gp_edit::AutoCompleteValues(true);
     //ckeditor basepath and configuration
     $ckeditor_basepath = common::GetDir('/include/thirdparty/ckeditor_34/');
     echo 'CKEDITOR_BASEPATH = ' . gpAjax::quote($ckeditor_basepath) . ';';
     echo 'var gp_ckconfig = {};';
     //gp_ckconfig options
     $options = array();
     echo gp_edit::CKConfig($options, 'gp_ckconfig');
     $scripts[] = '/include/thirdparty/ckeditor_34/ckeditor.js';
     $scripts[] = '/include/js/inline_edit/inlineck.js';
     return $scripts;
 }