mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-16 23:44:27 +00:00
change from double quotes to quotes for all js code
This commit is contained in:
@@ -55,10 +55,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
var dummyP = $("#dummyP");
|
var dummyP = $('#dummyP');
|
||||||
var pMargin = parseInt(dummyP.css("marginTop"));
|
var pMargin = parseInt(dummyP.css('marginTop'));
|
||||||
var hr = $('#hr');
|
var hr = $('#hr');
|
||||||
var hrHeight = hr.outerHeight() + parseInt(hr.css("marginTop")) + parseInt(hr.css("marginBottom"));
|
var hrHeight = hr.outerHeight() + parseInt(hr.css('marginTop')) + parseInt(hr.css('marginBottom'));
|
||||||
var contentHeight = window.innerHeight - pMargin - $('#title').outerHeight() - hrHeight;
|
var contentHeight = window.innerHeight - pMargin - $('#title').outerHeight() - hrHeight;
|
||||||
$('#content').css('height', contentHeight + 'px');
|
$('#content').css('height', contentHeight + 'px');
|
||||||
tinymce.init({
|
tinymce.init({
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
remove_trailing_brs: false,
|
remove_trailing_brs: false,
|
||||||
element_format: 'html',
|
element_format: 'html',
|
||||||
allow_unsafe_link_target: true,
|
allow_unsafe_link_target: true,
|
||||||
plugins: "lists",
|
plugins: 'lists',
|
||||||
toolbar: false,
|
toolbar: false,
|
||||||
menubar: false,
|
menubar: false,
|
||||||
inline: true
|
inline: true
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
if (result) {
|
if (result) {
|
||||||
return result[0];
|
return result[0];
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,14 +130,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleBulletList() {
|
function toggleBulletList() {
|
||||||
tinyMCE.editors[0].execCommand("InsertUnorderedList", false)
|
tinyMCE.editors[0].execCommand('InsertUnorderedList', false)
|
||||||
var listState = getListState();
|
var listState = getListState();
|
||||||
listState = listState.toLowerCase() === 'ul';
|
listState = listState.toLowerCase() === 'ul';
|
||||||
nativeCallbackHandler.onFormatChange(JSON.stringify({bullet: listState}));
|
nativeCallbackHandler.onFormatChange(JSON.stringify({bullet: listState}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleOrderedList() {
|
function toggleOrderedList() {
|
||||||
tinyMCE.editors[0].execCommand("InsertOrderedList", false)
|
tinyMCE.editors[0].execCommand('InsertOrderedList', false)
|
||||||
var listState = getListState();
|
var listState = getListState();
|
||||||
listState = listState.toLowerCase() === 'ol';
|
listState = listState.toLowerCase() === 'ol';
|
||||||
nativeCallbackHandler.onFormatChange(JSON.stringify({ordered: listState}));
|
nativeCallbackHandler.onFormatChange(JSON.stringify({ordered: listState}));
|
||||||
@@ -160,17 +160,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enable() {
|
function enable() {
|
||||||
document.addEventListener("selectionchange", selectionChangeHandler, false);
|
document.addEventListener('selectionchange', selectionChangeHandler, false);
|
||||||
document.removeEventListener("click", clickHandeler, false);
|
document.removeEventListener('click', clickHandeler, false);
|
||||||
tinyMCE.editors[0].setMode('design');
|
tinyMCE.editors[0].setMode('design');
|
||||||
titleDiv.setAttribute("contenteditable", true);
|
titleDiv.setAttribute("contenteditable", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function disable() {
|
function disable() {
|
||||||
document.removeEventListener("selectionchange", selectionChangeHandler, false);
|
document.removeEventListener('selectionchange', selectionChangeHandler, false);
|
||||||
document.addEventListener("click", clickHandeler, false);
|
document.addEventListener('click', clickHandeler, false);
|
||||||
tinyMCE.editors[0].setMode('readonly');
|
tinyMCE.editors[0].setMode('readonly');
|
||||||
titleDiv.setAttribute("contenteditable", false);
|
titleDiv.setAttribute('contenteditable', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickHandeler(e) {
|
function clickHandeler(e) {
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
if (lists.length > 0) {
|
if (lists.length > 0) {
|
||||||
return lists[0].nodeName.toLowerCase();
|
return lists[0].nodeName.toLowerCase();
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user