Commit 1d16d08d authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

ckeditor url can be configured with uiprops

closes #13521192
parent bd0cfeca3507
......@@ -12,7 +12,9 @@ from cubicweb.web.request import _CubicWebRequestBase
@monkeypatch(_CubicWebRequestBase)
@cached # so it's writed only once
def fckeditor_config(self):
ckeditor_url = '//cdn.ckeditor.com/4.5.7/standard/ckeditor.js'
ckeditor_url = self.uiprops.get(
'CKEDITOR_URL',
'//cdn.ckeditor.com/4.5.7/standard/ckeditor.js')
self.add_js(ckeditor_url, localfile=False)
self.add_js('initwysiwyg.js')
self.add_onload('buildWysiwygEditors()')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment