db0ac723fa
- Add links-box component (inside noteEditor.js). - Add related-box component and fix related pane. - Use tagsBox.jsx instead of tagsbox.xml in note editor links box popup. - Remove CSS styles and bindings for noteeditor, relatedbox and tagsbox.
37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://zotero/skin/overlay.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
|
|
|
|
<window
|
|
id="zotero-note-window"
|
|
orient="vertical"
|
|
width="400"
|
|
height="350"
|
|
title="&zotero.items.menu.attach.note;"
|
|
persist="screenX screenY width height"
|
|
windowtype="zotero:note"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<script>
|
|
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
|
|
Services.scriptloader.loadSubScript("resource://zotero/require.js", this);
|
|
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/elements/noteEditor.js", this);
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/elements/relatedBox.js", this);
|
|
Services.scriptloader.loadSubScript("chrome://zotero/content/note.js", this);
|
|
|
|
var React = require('react');
|
|
var ReactDOM = require('react-dom');
|
|
</script>
|
|
|
|
<keyset>
|
|
<key id="key_close" key="W" modifiers="accel" command="cmd_close"/>
|
|
</keyset>
|
|
<command id="cmd_close" oncommand="window.close();"/>
|
|
|
|
<note-editor id="zotero-note-editor" flex="1" onerror="return;onError()"/>
|
|
</window>
|