Commit 6e7a6344 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

rename variables

fck -> ck
parent df7eb5ac23b5
......@@ -12,12 +12,12 @@ from cubicweb.web.request import _CubicWebRequestBase
@monkeypatch(_CubicWebRequestBase)
@cached # so it's writed only once
def fckeditor_config(self):
fckeditor_url = '//cdn.ckeditor.com/4.5.7/standard/ckeditor.js'
self.add_js(fckeditor_url, localfile=False)
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()')
self.html_headers.define_var('fcklang', self.lang)
self.html_headers.define_var('fckconfigpath',
self.html_headers.define_var('cklang', self.lang)
self.html_headers.define_var('ckconfigpath',
self.data_url('ckeditor-config.js'))
@monkeypatch(WebConfiguration)
......
......@@ -7,8 +7,8 @@ function buildWysiwygEditors(parent) {
this.setAttribute('cubicweb:type', 'ckeditor');
if (typeof CKEDITOR != "undefined") {
var fck = CKEDITOR.replace(this.id, {
customConfig: fckconfigpath,
defaultLangguage: fcklang
customConfig: ckconfigpath,
defaultLangguage: cklang
});
} else {
cw.log('fckeditor could not be found.');
......
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