abstracted note detail components

This commit is contained in:
azivner
2018-03-27 21:46:38 -04:00
parent 000cf99546
commit 913b6bb6f6
7 changed files with 36 additions and 54 deletions

View File

@@ -5,7 +5,7 @@ const $noteDetailText = $('#note-detail-text');
let textEditor = null;
async function showTextNote() {
async function show() {
if (!textEditor) {
await utils.requireLibrary(utils.CKEDITOR);
@@ -41,7 +41,7 @@ function getEditor() {
}
export default {
showTextNote,
show,
getEditor,
getContent,
focus