added note type picker component

This commit is contained in:
azivner
2018-01-21 23:06:25 -05:00
parent c8f456d228
commit f9631ff59f
5 changed files with 116 additions and 5 deletions

View File

@@ -131,8 +131,6 @@ const noteEditor = (function() {
noteTitleEl.val(currentNote.detail.note_title);
console.log("Type: " + currentNote.detail.type);
if (currentNote.detail.type === 'text') {
// temporary workaround for https://github.com/ckeditor/ckeditor5-enter/issues/49
editor.setData(currentNote.detail.note_text ? currentNote.detail.note_text : "<p></p>");