1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00

Rich editor add (#3261)

* add cdoc editor

* add translation
This commit is contained in:
songjiaqi1
2019-04-13 10:15:20 +08:00
committed by Daniel Pan
parent 704778d788
commit 3dd6c4ba95
10 changed files with 278 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import SeafileEditor from '@seafile/seafile-editor';
import { SeafileEditor } from '@seafile/seafile-editor';
import 'whatwg-fetch';
import { Value, Document, Block } from 'slate';
import { seafileAPI } from './utils/seafile-api';
@@ -230,7 +230,7 @@ class EditorUtilities {
}
goDraftPage() {
window.location.href = serviceUrl + '/drafts/' + draftID + '/';
window.location.href = serviceUrl + '/drafts/' + draftID + '/';
}
createDraftFile() {