Patch Tools manually
This commit is contained in:
parent
28f377dc8f
commit
1f9288176b
14
js/3rdparty/webodf/editor/Tools.js
vendored
14
js/3rdparty/webodf/editor/Tools.js
vendored
@ -39,10 +39,11 @@ define("webodf/editor/Tools", [
|
|||||||
"webodf/editor/widgets/editHyperlinks",
|
"webodf/editor/widgets/editHyperlinks",
|
||||||
"webodf/editor/widgets/imageInserter",
|
"webodf/editor/widgets/imageInserter",
|
||||||
"webodf/editor/widgets/paragraphStylesDialog",
|
"webodf/editor/widgets/paragraphStylesDialog",
|
||||||
"webodf/editor/widgets/zoomSlider",
|
"owncloud/widgets/zoomCombo",
|
||||||
|
"owncloud/widgets/ocToolbar",
|
||||||
"webodf/editor/widgets/aboutDialog",
|
"webodf/editor/widgets/aboutDialog",
|
||||||
"webodf/editor/EditorSession"],
|
"webodf/editor/EditorSession"],
|
||||||
function (ready, MenuItem, DropDownMenu, Button, DropDownButton, Toolbar, ParagraphAlignment, SimpleStyles, UndoRedoMenu, CurrentStyle, AnnotationControl, EditHyperlinks, ImageInserter, ParagraphStylesDialog, ZoomSlider, AboutDialog, EditorSession) {
|
function (ready, MenuItem, DropDownMenu, Button, DropDownButton, Toolbar, ParagraphAlignment, SimpleStyles, UndoRedoMenu, CurrentStyle, AnnotationControl, EditHyperlinks, ImageInserter, ParagraphStylesDialog, ZoomCombo, OcToolbar, AboutDialog, EditorSession) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
return function Tools(toolbarElementId, args) {
|
return function Tools(toolbarElementId, args) {
|
||||||
@ -60,6 +61,7 @@ define("webodf/editor/Tools", [
|
|||||||
paragraphStylesMenuItem, paragraphStylesDialog,
|
paragraphStylesMenuItem, paragraphStylesDialog,
|
||||||
editorSession,
|
editorSession,
|
||||||
aboutDialog,
|
aboutDialog,
|
||||||
|
ocToolbar,
|
||||||
sessionSubscribers = [];
|
sessionSubscribers = [];
|
||||||
|
|
||||||
function placeAndStartUpWidget(widget) {
|
function placeAndStartUpWidget(widget) {
|
||||||
@ -145,6 +147,10 @@ define("webodf/editor/Tools", [
|
|||||||
|
|
||||||
// init
|
// init
|
||||||
ready(function () {
|
ready(function () {
|
||||||
|
ocToolbar = new OcToolbar(function (widget) {
|
||||||
|
widget.startup();
|
||||||
|
});
|
||||||
|
|
||||||
toolbar = new Toolbar({}, toolbarElementId);
|
toolbar = new Toolbar({}, toolbarElementId);
|
||||||
|
|
||||||
// About
|
// About
|
||||||
@ -268,7 +274,7 @@ define("webodf/editor/Tools", [
|
|||||||
createTool(CurrentStyle, args.paragraphStyleSelectingEnabled);
|
createTool(CurrentStyle, args.paragraphStyleSelectingEnabled);
|
||||||
|
|
||||||
// Zoom Level Selector
|
// Zoom Level Selector
|
||||||
createTool(ZoomSlider, args.zoomingEnabled);
|
createTool(ZoomCombo, args.zoomingEnabled);
|
||||||
|
|
||||||
// hyper links
|
// hyper links
|
||||||
createTool(EditHyperlinks, args.hyperlinkEditingEnabled);
|
createTool(EditHyperlinks, args.hyperlinkEditingEnabled);
|
||||||
@ -309,7 +315,7 @@ define("webodf/editor/Tools", [
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
toolbar.startup();
|
||||||
setEditorSession(editorSession);
|
setEditorSession(editorSession);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user