fx115: classic citation dialog fixes

- have panes for item selection occupy all available space
- use Zotero ES module to fix simple editor

search in classic citation dialog seems broken
This commit is contained in:
Bogdan Abaev 2024-02-02 15:02:12 -05:00 committed by Dan Stillman
parent cd5a9852d5
commit 1b12b66e48
2 changed files with 3 additions and 5 deletions

View file

@ -70,11 +70,11 @@
<quick-search-textbox id="zotero-tb-search" timeout="250" oncommand="onSearch()" dir="reverse"/>
</hbox>
<hbox flex="1" style="margin-top: 5px">
<vbox id="zotero-collections-tree-container" class="virtualized-table-container" style="min-width: 200px">
<vbox id="zotero-collections-tree-container" class="virtualized-table-container" style="min-width: 200px; min-height: 100%;">
<html:div id="zotero-collections-tree"></html:div>
</vbox>
<hbox id="zotero-items-pane-content" class="virtualized-table-container" flex="1">
<hbox id="zotero-items-pane-content" class="virtualized-table-container" flex="1" style="width: 100%; min-height: 100%;">
<html:div id="zotero-items-tree"></html:div>
</hbox>
</hbox>

View file

@ -48,9 +48,7 @@
// Simple WYSIWYG editor using contenteditable
(function() {
var Zotero = Components.classes['@zotero.org/Zotero;1']
.getService(Components.interfaces.nsISupports)
.wrappedJSObject;
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
const defaultParagraphSeparatorString = 'defaultParagraphSeparator'
const formatBlock = 'formatBlock'