['Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', '-', 'Anchor', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
+ config.toolbarCanCollapse = true;
+ config.floatSpacePreferRight = true;
+ config.floatSpaceDockedOffsetY = 0;
+ config.startupFocus = true;
config.disableObjectResizing = true;
document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
}
else {
CKEDITOR.inline(pagebody);
- pagebody.focus();
}
document.body.className = toggled ? '' : 'edit';
return false;
};
+ if (window.location.hash == '#edit') {
+ editlink.onclick();
+ }
document.querySelector('header ul').appendChild(editlink);
}