Browse Source

Update inc_fun_funAdmin.php

tags/6.1.9
tianya 2 months ago
parent
commit
b89960a153
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/system/inc/inc_fun_funAdmin.php

+ 5
- 1
src/system/inc/inc_fun_funAdmin.php View File

@@ -149,7 +149,11 @@ function SpGetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype
if ($GLOBALS['cfg_html_editor'] == 'ckeditor') {
$addConfig = "";
if (defined("DEDEADMIN")) {
$addConfig = ",{allowedContent:true,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent,codesnippet,emoji',codeSnippet_theme: 'default'}";
$emoji = "";
if ($GLOBALS['cfg_db_language']=="utf8mb4") {
$emoji = ",emoji";
}
$addConfig = ",{allowedContent:true,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent,codesnippet{$emoji}',codeSnippet_theme: 'default'}";
}
$code = <<<EOT
<script src="{$GLOBALS['cfg_static_dir']}/ckeditor/ckeditor.js"></script>


Loading…
Cancel
Save