note content refactoring, WIP

This commit is contained in:
zadam
2019-02-06 21:29:23 +01:00
parent 8884177d9f
commit c487a95bc7
17 changed files with 158 additions and 123 deletions

View File

@@ -111,13 +111,13 @@ async function renderTooltip(note, attributes) {
}
if (note.type === 'text') {
// surround with <div> for a case when note.content is pure text (e.g. "[protected]") which
// surround with <div> for a case when note's content is pure text (e.g. "[protected]") which
// then fails the jquery non-empty text test
content += '<div>' + note.content + '</div>';
content += '<div>' + note.noteContent.content + '</div>';
}
else if (note.type === 'code') {
content += $("<pre>")
.text(note.content)
.text(note.noteContent.content)
.prop('outerHTML');
}
else if (note.type === 'image') {