{
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 {~,~}~~}~
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) {
function make_wysiwyg(name) {
CKEDITOR.replace(name, {
'contentsCss': 'style.css?m=~style.css mtime~',
- bodyId: '~$basename~' + '-wysiwyg-' + name,
'allowedContent': true,
+ bodyId: '~$basename~' + '_wysiwyg_' + name,
'stylesSet': [
{ name: 'Paragraph', element: 'p'},
{ name: 'Page Headline', element: 'h1'},