Modify static resources

This commit is contained in:
MangKyu
2022-01-08 19:26:07 +09:00
parent 9b1ac3d245
commit b270e9a4d3

View File

@@ -2,11 +2,13 @@ $(document).ready(function () {
$("#innerEditor").append($("#description").val())
let editor
ClassicEditor.create(document.querySelector('#editor'))
.then(newEditor => {
ClassicEditor.create(document.querySelector('#editor'), {
ckfinder: {
// todo 파일 업로드 api
// uploadUrl: 'https://freeimage.host/json?command=QuickUpload&type=Files&responseType=json'
}}).then(newEditor => {
editor = newEditor;
})
.catch(error => {
}).catch(error => {
console.error(error);
});
@@ -40,7 +42,7 @@ function editAnswer(editor) {
alert("설명 추가 성공")
window.location = window.location
},
error: function (e) {
error: function () {
alert("설명 추가 실패");
}
});