@@ -149,7 +149,7 @@ function SpGetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype | |||||
if ($GLOBALS['cfg_html_editor'] == 'ckeditor') { | if ($GLOBALS['cfg_html_editor'] == 'ckeditor') { | ||||
$addConfig = ""; | $addConfig = ""; | ||||
if (defined("DEDEADMIN")) { | 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'}"; | |||||
$addConfig = ",{allowedContent:true,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent,codesnippet',codeSnippet_theme: 'default'}"; | |||||
} | } | ||||
$code = <<<EOT | $code = <<<EOT | ||||
<script src="{$GLOBALS['cfg_static_dir']}/ckeditor/ckeditor.js"></script> | <script src="{$GLOBALS['cfg_static_dir']}/ckeditor/ckeditor.js"></script> | ||||
@@ -14,6 +14,9 @@ | |||||
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> | ||||
<meta name="keywords" content="{dede:field.keywords/}" /> | <meta name="keywords" content="{dede:field.keywords/}" /> | ||||
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> | ||||
<link href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css" rel="stylesheet"> | |||||
<script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | |||||
<script>hljs.initHighlightingOnLoad();</script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
{dede:include filename="top.htm"/} | {dede:include filename="top.htm"/} | ||||
@@ -15,6 +15,9 @@ | |||||
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}_{dede:global.cfg_webname/}</title> | ||||
<meta name="keywords" content="{dede:field.keywords/}" /> | <meta name="keywords" content="{dede:field.keywords/}" /> | ||||
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}" /> | ||||
<link href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css" rel="stylesheet"> | |||||
<script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | |||||
<script>hljs.initHighlightingOnLoad();</script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
{dede:include filename="top.htm"/} | {dede:include filename="top.htm"/} | ||||