Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
6e29a098
Commit
6e29a098
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: fckeditor ko on linux distrib
parent
a34ce201
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/main.inc.php
+10
-16
10 additions, 16 deletions
htdocs/main.inc.php
with
10 additions
and
16 deletions
htdocs/main.inc.php
+
10
−
16
View file @
6e29a098
...
...
@@ -1011,21 +1011,15 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
if
(
!
empty
(
$conf
->
fckeditor
->
enabled
)
&&
(
empty
(
$conf
->
global
->
FCKEDITOR_EDITORNAME
)
||
$conf
->
global
->
FCKEDITOR_EDITORNAME
==
'ckeditor'
))
{
print
'<!-- Includes JS for CKEditor -->'
.
"
\n
"
;
if
(
constant
(
'JS_CKEDITOR'
))
{
print
'<script type="text/javascript">var CKEDITOR_BASEPATH = \''
.
JS_CKEDITOR
.
'\';</script>'
.
"
\n
"
;
print
'<script type="text/javascript" src="'
.
JS_CKEDITOR
.
'ckeditor_basic.js"></script>'
.
"
\n
"
;
}
else
{
print
'<script type="text/javascript">'
;
print
'var CKEDITOR_BASEPATH = \''
.
DOL_URL_ROOT
.
'/includes/ckeditor/\';'
.
"
\n
"
;
print
'var ckeditorConfig = \''
.
dol_buildpath
(
'/theme/'
.
$conf
->
theme
.
'/ckeditor/config.js'
,
1
)
.
'\';'
.
"
\n
"
;
print
'var ckeditorFilebrowserBrowseUrl = \''
.
DOL_URL_ROOT
.
'/core/filemanagerdol/browser/default/browser.php?Connector='
.
DOL_URL_ROOT
.
'/core/filemanagerdol/connectors/php/connector.php\';'
.
"
\n
"
;
print
'var ckeditorFilebrowserImageBrowseUrl = \''
.
DOL_URL_ROOT
.
'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector='
.
DOL_URL_ROOT
.
'/core/filemanagerdol/connectors/php/connector.php\';'
.
"
\n
"
;
print
'</script>'
.
"
\n
"
;
print
'<script type="text/javascript" src="'
.
DOL_URL_ROOT
.
'/includes/ckeditor/ckeditor_basic.js"></script>'
.
"
\n
"
;
}
$pathckeditor
=
DOL_URL_ROOT
.
'/includes/ckeditor/'
;
if
(
constant
(
'JS_CKEDITOR'
))
$pathckeditor
=
JS_CKEDITOR
;
// To use external ckeditor js lib
print
'<script type="text/javascript">'
;
print
'var CKEDITOR_BASEPATH = \''
.
$pathckeditor
.
'\';'
.
"
\n
"
;
print
'var ckeditorConfig = \''
.
dol_buildpath
(
'/theme/'
.
$conf
->
theme
.
'/ckeditor/config.js'
,
1
)
.
'\';'
.
"
\n
"
;
print
'var ckeditorFilebrowserBrowseUrl = \''
.
DOL_URL_ROOT
.
'/core/filemanagerdol/browser/default/browser.php?Connector='
.
DOL_URL_ROOT
.
'/core/filemanagerdol/connectors/php/connector.php\';'
.
"
\n
"
;
print
'var ckeditorFilebrowserImageBrowseUrl = \''
.
DOL_URL_ROOT
.
'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector='
.
DOL_URL_ROOT
.
'/core/filemanagerdol/connectors/php/connector.php\';'
.
"
\n
"
;
print
'</script>'
.
"
\n
"
;
print
'<script type="text/javascript" src="'
.
$pathckeditor
.
'ckeditor_basic.js"></script>'
.
"
\n
"
;
}
// Global js function
...
...
@@ -1041,7 +1035,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
// jsfile is a relative path
print
'<script type="text/javascript" src="'
.
dol_buildpath
(
$jsfile
,
1
)
.
'"></script><!-- Added by module '
.
$key
.
'-->'
.
"
\n
"
;
}
}
// JS forced by page in top_htmlhead (relative url starting with /)
if
(
is_array
(
$arrayofjs
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment