Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
ckeditor
Commits
cdd509ace482
Commit
09595c72
authored
Oct 26, 2016
by
Katia Saurfelt
Browse files
Set the global variable "CKEDITOR_BASEPATH" if defined (closes #15956422)
parent
f5119788b00c
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
View file @
cdd509ac
Summary
-------
WYSIWYG js editor with ckeditor
If don't want to use ckeditor from //cdn set following variables in
uiprops of your main cube:
CKEDITOR_URL = data('ckeditor/ckeditor.js')
CKEDITOR_BASEPATH = data('ckeditor/')
__init__.py
View file @
cdd509ac
...
...
@@ -28,6 +28,9 @@ def fckeditor_config(self):
}
}, 200);
'''
)
base_path
=
self
.
uiprops
.
get
(
'CKEDITOR_BASEPATH'
)
if
base_path
:
self
.
html_headers
.
define_var
(
'CKEDITOR_BASEPATH'
,
base_path
)
self
.
html_headers
.
define_var
(
'cklang'
,
self
.
lang
)
self
.
html_headers
.
define_var
(
'ckconfigpath'
,
self
.
data_url
(
'ckeditor-config.js'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment