mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix editor on android
This commit is contained in:
@@ -1086,6 +1086,8 @@
|
|||||||
|
|
||||||
#titlebar {
|
#titlebar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
padding-left:12px;
|
||||||
|
padding-right:12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-bar {
|
.info-bar {
|
||||||
@@ -1147,8 +1149,8 @@
|
|||||||
let titleIn = document.getElementById('titlebar');
|
let titleIn = document.getElementById('titlebar');
|
||||||
|
|
||||||
//titleIn.style.width = width;
|
//titleIn.style.width = width;
|
||||||
titleIn.style['padding-left'] = 12;
|
//titleIn.style['padding-left'] =0;
|
||||||
titleIn.style['padding-right'] = 60;
|
//titleIn.style['padding-right'] =0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1243,6 +1245,11 @@
|
|||||||
quality: 0.9,
|
quality: 0.9,
|
||||||
maxWidth: 1024,
|
maxWidth: 1024,
|
||||||
imageType: 'image/jpeg'
|
imageType: 'image/jpeg'
|
||||||
|
},
|
||||||
|
history: {
|
||||||
|
delay: 2000,
|
||||||
|
maxStack: 500,
|
||||||
|
userOnly: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
placeholder: 'Start writing your note',
|
placeholder: 'Start writing your note',
|
||||||
@@ -1629,6 +1636,15 @@
|
|||||||
document.getElementById('titleInput').blur();
|
document.getElementById('titleInput').blur();
|
||||||
editor.blur();
|
editor.blur();
|
||||||
break;
|
break;
|
||||||
|
case "undo":
|
||||||
|
editor.history.undo();
|
||||||
|
break;
|
||||||
|
case "redo":
|
||||||
|
editor.history.redo();
|
||||||
|
break;
|
||||||
|
case "clearHistory":
|
||||||
|
editor.history.clear();
|
||||||
|
break;
|
||||||
case "dateEdited":
|
case "dateEdited":
|
||||||
document.getElementById('infodate').innerText = value;
|
document.getElementById('infodate').innerText = value;
|
||||||
break;
|
break;
|
||||||
@@ -1639,9 +1655,9 @@
|
|||||||
editor.setText(value, 'api')
|
editor.setText(value, 'api')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (message.focus === "editor") {
|
if (message.focus === "editor") {
|
||||||
editor.focus();
|
//editor.focus();
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('titleInput').focus();
|
//document.getElementById('titleInput').focus();
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user