forked from GitHub/virtualtabletop
Add Toolbar buttons with links to wiki and tutorials (#2145)
This commit is contained in:
parent
f80339b1f2
commit
4be56a040b
@ -40,7 +40,13 @@ function initializeEditor(currentMetaData) {
|
||||
|
||||
new ToolbarDivider(),
|
||||
|
||||
new GroupButton()
|
||||
new GroupButton(),
|
||||
|
||||
new ToolbarDivider(),
|
||||
|
||||
new TutorialsButton(),
|
||||
new WikiButton()
|
||||
|
||||
]);
|
||||
|
||||
renderDragToolbar(dragToolbarButtons = [
|
||||
|
9
client/js/editor/toolbar/tutorials.js
Normal file
9
client/js/editor/toolbar/tutorials.js
Normal file
@ -0,0 +1,9 @@
|
||||
class TutorialsButton extends ToolbarButton {
|
||||
constructor() {
|
||||
super('school', 'View tutorials', 'Open tutorials in a new window.');
|
||||
}
|
||||
|
||||
click() {
|
||||
window.open("https://virtualtabletop.io/Tutorials#tutorials", "_blank");
|
||||
}
|
||||
}
|
9
client/js/editor/toolbar/wiki.js
Normal file
9
client/js/editor/toolbar/wiki.js
Normal file
@ -0,0 +1,9 @@
|
||||
class WikiButton extends ToolbarButton {
|
||||
constructor() {
|
||||
super('help', 'View wiki', 'Open GitHub wiki page in a new window.');
|
||||
}
|
||||
|
||||
click() {
|
||||
window.open("https://github.com/ArnoldSmith86/virtualtabletop/wiki", "_blank");
|
||||
}
|
||||
}
|
@ -104,6 +104,8 @@ export default async function minifyHTML() {
|
||||
'client/js/editor/toolbar/align.js',
|
||||
'client/js/editor/toolbar/group.js',
|
||||
'client/js/editor/toolbar/grid.js',
|
||||
'client/js/editor/toolbar/tutorials.js',
|
||||
'client/js/editor/toolbar/wiki.js',
|
||||
'client/js/editor/dragButton.js',
|
||||
'client/js/editor/dragbuttons/drag.js',
|
||||
'client/js/editor/dragbuttons/clone.js',
|
||||
|
Loading…
x
Reference in New Issue
Block a user