mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-25 00:00:00 +08:00
Extracted page form js and added better page content linking
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
window.ZeroClipboard = require('zeroclipboard');
|
||||
window.ZeroClipboard.config({
|
||||
swfPath: '/ZeroClipboard.swf'
|
||||
});
|
||||
|
||||
// Global jQuery Elements
|
||||
$(function () {
|
||||
@ -23,6 +27,12 @@ function elemExists(selector) {
|
||||
return document.querySelector(selector) !== null;
|
||||
}
|
||||
|
||||
// TinyMCE editor
|
||||
if(elemExists('#html-editor')) {
|
||||
var tinyMceOptions = require('./pages/page-form');
|
||||
tinymce.init(tinyMceOptions);
|
||||
}
|
||||
|
||||
// Vue JS elements
|
||||
var Vue = require('vue');
|
||||
Vue.use(require('vue-resource'));
|
||||
|
Reference in New Issue
Block a user