settings = new TinyMCESettings(Theme.advanced);
// advanced theme required to add save/cancel buttons to toolbar
inPlaceSaveBehavior = createSaveBehavior();
if (inPlaceSaveBehavior != null) {
add(inPlaceSaveBehavior);
WicketSavePlugin savePlugin = new WicketSavePlugin(inPlaceSaveBehavior);
settings.add(savePlugin.getSaveButton(), Toolbar.first, Position.before);
settings.add(savePlugin.getCancelButton(), Toolbar.first, Position.before);
settings.add(Button.separator, Toolbar.first, Position.before);
}
inPlaceEditBehavior = createEditBehavior(triggerComponent);
if (inPlaceEditBehavior != null)
add(inPlaceEditBehavior);