noteview.html (2420B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <link type="text/css" rel="stylesheet" href="css/note-ui.css"/> 6 <script type="text/javascript" src="tinymce.min.js"></script> 7 <script type="text/javascript" src="locale.js"></script> 8 <script type="text/javascript"> 9 tinyMCE.init({ 10 body_id: "zotero-tinymce-note", 11 content_css: "css/note-content.css", 12 entity_encoding: "raw", 13 fix_list_elements: true, 14 15 toolbar: false, 16 menubar: false, 17 resize: false, 18 statusbar: false, 19 20 init_instance_callback: function (ed) { 21 ed.setMode('readonly'); 22 23 setLocale(ed); 24 zoteroInit(ed); 25 26 ed.getContainer().classList.add('readonly'); 27 }, 28 29 // More restrictive version of default set, with JS/etc. removed 30 valid_elements: "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang]," 31 + "a[rel|rev|charset|hreflang|tabindex|accesskey|type|" 32 + "name|href|target|title|class],strong/b,em/i,strike,u," 33 + "#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|" 34 + "src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup," 35 + "-blockquote[cite],-table[border=0|cellspacing|cellpadding|width|frame|rules|" 36 + "height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|" 37 + "height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot," 38 + "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor" 39 + "|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div," 40 + "-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face" 41 + "|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite]," 42 + "object[classid|width|height|codebase|type],param[name|value|_value]," 43 + "map[name],area[shape|coords|href|alt|target],bdo," 44 + "button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|" 45 + "valign|width],dfn,fieldset," 46 + "kbd,label[for],legend,optgroup[label|disabled],option[disabled|label|selected|value]," 47 + "q[cite],samp,select[disabled|multiple|name|size],small," 48 + "textarea[cols|rows|disabled|name|readonly],tt,var,big" 49 }); 50 tinyMCE.execCommand("mceAddEditor", true, "tinymce"); 51 </script> 52 </head> 53 <body> 54 <div id="tinymce"></div> 55 </body> 56 </html>