Skip to content

Commit

Permalink
Expose styleEngine in csledit.js, for Abbreviation Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Aug 24, 2017
1 parent a15b23e commit b0c0cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/content/zotero/tools/csledit.js
Expand Up @@ -157,6 +157,7 @@ var Zotero_CSL_Editor = new function() {

this.generateBibliography = function(style) {
var iframe = document.getElementById('zotero-csl-preview-box');
var editor = document.getElementById('zotero-csl-editor');

var items = Zotero.getActiveZoteroPane().getSelectedItems();
if (items.length == 0) {
Expand Down Expand Up @@ -228,6 +229,7 @@ var Zotero_CSL_Editor = new function() {
iframe.contentDocument.documentElement.innerHTML = '<div>' + Zotero.getString('styles.editor.warning.renderError') + '</div><div>'+e+'</div>';
throw e;
}
editor.styleEngine = styleEngine;
}


Expand Down

0 comments on commit b0c0cd6

Please sign in to comment.