projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix.
[Plinn.git]
/
skins
/
generic
/
wysiwyg_support.pt
diff --git
a/skins/generic/wysiwyg_support.pt
b/skins/generic/wysiwyg_support.pt
index
ef29cc7
..
2e9528c
100644
(file)
--- a/
skins/generic/wysiwyg_support.pt
+++ b/
skins/generic/wysiwyg_support.pt
@@
-16,9
+16,11
@@
<div>
<script type="text/javascript" tal:attributes="src string:$portal_url/ckeditor/ckeditor.js"></script>
<script type="text/javascript" tal:content="structure python:'''
<div>
<script type="text/javascript" tal:attributes="src string:$portal_url/ckeditor/ckeditor.js"></script>
<script type="text/javascript" tal:content="structure python:'''
- CKEDITOR.replace('%(inputname)s');
- CKEDITOR.instances['%(inputname)s'].contentPath = '%(contentPath)s';
(function(){
(function(){
+ CKEDITOR.replace('%(inputname)s');
+ var ck = CKEDITOR.instances['%(inputname)s'];
+ ck.contentPath = '%(contentPath)s';
+ ck.config.baseHref = '%(baseHref)s';
var ckForm = document.getElementById('%(inputname)s').form;
if ((AJAX_CONFIG & 2) == 2) {
var formManager = new FormManager(ckForm, document.getElementById('mainCell'));
var ckForm = document.getElementById('%(inputname)s').form;
if ((AJAX_CONFIG & 2) == 2) {
var formManager = new FormManager(ckForm, document.getElementById('mainCell'));
@@
-28,7
+30,9
@@
};
}
})();
};
}
})();
- ''' % {'inputname' : inputname, 'contentPath' : here.absolute_url(relative=1)}">
+ ''' % {'inputname' : inputname,
+ 'contentPath' : here.absolute_url(relative=1),
+ 'baseHref' : here.absolute_url()+'/'}">
</script>
</div>
</div>
</script>
</div>
</div>