mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-09-01 21:22:04 +03:00
Added code highlighting syntax modes
This commit is contained in:
@@ -399,7 +399,7 @@ module.exports = function (ngApp, events) {
|
||||
|
||||
// Handle image upload and add image into markdown content
|
||||
function uploadImage(file) {
|
||||
if (file.type.indexOf('image') !== 0) return;
|
||||
if (file === null || !file.type.indexOf('image') !== 0) return;
|
||||
let formData = new FormData();
|
||||
let ext = 'png';
|
||||
let xhr = new XMLHttpRequest();
|
||||
|
Reference in New Issue
Block a user