2008-10-15 05:24:38 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
2012-10-30 08:10:29 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2010-10-09 08:12:37 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="css/note-ui.css"/>
|
2018-03-11 06:41:16 +00:00
|
|
|
<script type="text/javascript" src="tinymce.min.js"></script>
|
2016-12-26 08:12:58 +00:00
|
|
|
<script type="text/javascript" src="locale.js"></script>
|
2008-10-15 05:24:38 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
tinyMCE.init({
|
2016-12-26 04:03:41 +00:00
|
|
|
body_id: "zotero-tinymce-note",
|
|
|
|
content_css: "css/note-content.css",
|
|
|
|
entity_encoding: "raw",
|
|
|
|
fix_list_elements: true,
|
2008-10-15 05:24:38 +00:00
|
|
|
|
2017-05-12 23:59:27 +00:00
|
|
|
toolbar: false,
|
2016-12-26 04:03:41 +00:00
|
|
|
menubar: false,
|
|
|
|
resize: false,
|
|
|
|
statusbar: false,
|
2020-11-09 12:49:07 +00:00
|
|
|
// Hack in text selection. More info: https://stackoverflow.com/a/52272322
|
|
|
|
readonly: 1,
|
|
|
|
setup: function (editor) {
|
|
|
|
editor.on('SwitchMode', function hack() {
|
|
|
|
if (editor.readonly) {
|
|
|
|
editor.readonly = 1;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2016-12-26 04:03:41 +00:00
|
|
|
init_instance_callback: function (ed) {
|
2017-05-12 23:59:27 +00:00
|
|
|
ed.setMode('readonly');
|
|
|
|
|
2016-12-26 08:12:58 +00:00
|
|
|
setLocale(ed);
|
2016-12-26 04:03:41 +00:00
|
|
|
zoteroInit(ed);
|
2020-11-09 12:49:07 +00:00
|
|
|
|
2017-05-12 23:59:27 +00:00
|
|
|
ed.getContainer().classList.add('readonly');
|
2020-11-09 12:49:07 +00:00
|
|
|
ed.dom.doc.addEventListener('click', (event) => {
|
|
|
|
if (event.target.nodeName === 'A') {
|
|
|
|
zoteroHandleEvent({ type: 'ZoteroLinkClick', value: event.target.href });
|
|
|
|
event.preventDefault();
|
|
|
|
}
|
|
|
|
}, true);
|
2012-10-30 08:10:29 +00:00
|
|
|
},
|
2008-10-15 05:24:38 +00:00
|
|
|
|
2010-10-08 06:44:33 +00:00
|
|
|
// More restrictive version of default set, with JS/etc. removed
|
2016-12-26 04:03:41 +00:00
|
|
|
valid_elements: "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang],"
|
2019-09-16 04:18:51 +00:00
|
|
|
+ "a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class],"
|
|
|
|
+ "strong/b,"
|
|
|
|
+ "em/i,"
|
|
|
|
+ "strike,"
|
|
|
|
+ "u,"
|
|
|
|
+ "#p,"
|
|
|
|
+ "-ol[type|compact],"
|
|
|
|
+ "-ul[type|compact],"
|
|
|
|
+ "-li,"
|
|
|
|
+ "br,"
|
|
|
|
+ "img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],"
|
|
|
|
+ "-sub,-sup,"
|
|
|
|
+ "-blockquote[cite],"
|
|
|
|
+ "-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],"
|
|
|
|
+ "-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],"
|
|
|
|
+ "tbody,thead,tfoot,"
|
|
|
|
+ "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],"
|
|
|
|
+ "#th[colspan|rowspan|width|height|align|valign|scope],"
|
|
|
|
+ "caption,"
|
|
|
|
+ "-div,"
|
|
|
|
+ "-span,"
|
|
|
|
+ "-code,"
|
|
|
|
+ "-pre,"
|
|
|
|
+ "address,"
|
|
|
|
+ "-h1,-h2,-h3,-h4,-h5,-h6,"
|
|
|
|
+ "hr[size|noshade],"
|
|
|
|
+ "-font[face|size|color],"
|
|
|
|
+ "dd,dl,dt,"
|
|
|
|
+ "cite,"
|
|
|
|
+ "abbr,"
|
|
|
|
+ "acronym,"
|
|
|
|
+ "del[datetime|cite],ins[datetime|cite],"
|
|
|
|
+ "bdo,"
|
|
|
|
+ "col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|valign|width],"
|
|
|
|
+ "dfn,"
|
|
|
|
+ "kbd,"
|
|
|
|
+ "label[for],"
|
|
|
|
+ "legend,"
|
|
|
|
+ "q[cite],"
|
|
|
|
+ "samp,"
|
|
|
|
+ "var,"
|
2008-10-15 05:24:38 +00:00
|
|
|
});
|
2016-12-26 04:03:41 +00:00
|
|
|
tinyMCE.execCommand("mceAddEditor", true, "tinymce");
|
2008-10-15 05:24:38 +00:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2013-04-09 08:14:48 +00:00
|
|
|
<div id="tinymce"></div>
|
2008-10-15 05:24:38 +00:00
|
|
|
</body>
|
|
|
|
</html>
|