|
|
|
@ -215,19 +215,6 @@ function oncopy(e) {
|
|
|
|
//alert(e.clipboardData.getData('text/plain'));
|
|
|
|
//alert(e.clipboardData.getData('text/plain'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function onlockbutton(e) {
|
|
|
|
|
|
|
|
let lockButton = document.getElementById('lockButton');
|
|
|
|
|
|
|
|
let lockButtonLabel = document.getElementById('lockButtonLabel');
|
|
|
|
|
|
|
|
let cheezenotes = document.getElementById('cheezenotes');
|
|
|
|
|
|
|
|
if (lockButton.checked) {
|
|
|
|
|
|
|
|
cheezenotes.contentEditable = false;
|
|
|
|
|
|
|
|
lockButtonLabel.innerText = 'visibility';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
cheezenotes.contentEditable = true;
|
|
|
|
|
|
|
|
lockButtonLabel.innerText = 'visibility_off';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ondrag(e) {
|
|
|
|
function ondrag(e) {
|
|
|
|
// alert('drag');
|
|
|
|
// alert('drag');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -323,13 +310,21 @@ function onblur(e) {
|
|
|
|
let cheezenotes = document.getElementById('cheezenotes');
|
|
|
|
let cheezenotes = document.getElementById('cheezenotes');
|
|
|
|
redrawTables(cheezenotes);
|
|
|
|
redrawTables(cheezenotes);
|
|
|
|
onsave();
|
|
|
|
onsave();
|
|
|
|
hideTokens();
|
|
|
|
// hideTokens();
|
|
|
|
disableFormatButtons();
|
|
|
|
disableFormatButtons();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function onfocus() {
|
|
|
|
function onfocus(e) {
|
|
|
|
|
|
|
|
let editModeButton = document.getElementById('editModeButton');
|
|
|
|
|
|
|
|
if (editModeButton.classList.contains('buttonoff')) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
let cheezenotes = document.getElementById('cheezenotes');
|
|
|
|
|
|
|
|
cheezenotes.contentEditable = false;
|
|
|
|
|
|
|
|
cheezenotes.blur();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
redrawTables(cheezenotes, dpwidth());
|
|
|
|
redrawTables(cheezenotes, dpwidth());
|
|
|
|
showTokens();
|
|
|
|
// showTokens();
|
|
|
|
enableFormatButtons();
|
|
|
|
enableFormatButtons();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|