mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Get plain text from title
This commit is contained in:
1 parent
2066955ec9
commit
c8c89c1a76
1 file changed
+5
-3
+5
-3
@@ -841,9 +841,11 @@ View.prototype = {
|
||||
$("#modal-note-div .quicknote").attr('data-id', id);
|
||||
},
|
||||
_editableTitle: function(title) {
|
||||
if (title === undefined)
|
||||
return $('#modal-note-div #title-editable').html().trim();
|
||||
else
|
||||
if (title === undefined) {
|
||||
title = $('#modal-note-div #title-editable')[0].textContent ||
|
||||
$('#modal-note-div #title-editable')[0].innerText || "";
|
||||
return title.trim();
|
||||
} else
|
||||
$('#modal-note-div #title-editable').html(title);
|
||||
},
|
||||
_editableContent: function(content) {
|
||||
|
||||
Reference in new issue
Block a user