Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge multiple ckeditors on one page fix
[wfpl-cms.git]
/
admin_pages.html
diff --git
a/admin_pages.html
b/admin_pages.html
index
f47aac2
..
ca44429
100644
(file)
--- a/
admin_pages.html
+++ b/
admin_pages.html
@@
-65,8
+65,8
@@
{
thumb: "~image thumb_src jsdq~",
image: "~image image_src jsdq~",
{
thumb: "~image thumb_src jsdq~",
image: "~image image_src jsdq~",
- image_width: "~image image_width~",
- image_height: "~image image_height~",
+ image_width: ~image image_width~,
+ image_height: ~image image_height~,
sizes: "~sizes jsdq~",
caption: "~caption jsdq~"
}~ sep {~,~}~~}~
sizes: "~sizes jsdq~",
caption: "~caption jsdq~"
}~ sep {~,~}~~}~
@@
-148,7
+148,7
@@
break;
}
CKEDITOR.dialog.getCurrent().hide();
break;
}
CKEDITOR.dialog.getCurrent().hide();
- editor.insertElement(CKEDITOR.dom.element.createFromHtml(code));
+ CKEDITOR.currentInstance.insertElement(CKEDITOR.dom.element.createFromHtml(code));
}
CKEDITOR.plugins.add('wfpl_images', {
init: function (editor) {
}
CKEDITOR.plugins.add('wfpl_images', {
init: function (editor) {
@@
-225,8
+225,8
@@
function make_wysiwyg(name) {
CKEDITOR.replace(name, {
'contentsCss': 'style.css?m=~style.css mtime~',
function make_wysiwyg(name) {
CKEDITOR.replace(name, {
'contentsCss': 'style.css?m=~style.css mtime~',
- bodyId: '~$basename~' + '-wysiwyg-' + name,
'allowedContent': true,
'allowedContent': true,
+ bodyId: '~$basename~' + '_wysiwyg_' + name,
'stylesSet': [
{ name: 'Paragraph', element: 'p'},
{ name: 'Page Headline', element: 'h1'},
'stylesSet': [
{ name: 'Paragraph', element: 'p'},
{ name: 'Page Headline', element: 'h1'},