You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdkjs-plugins/content/highlightcode/scripts/highlight.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -885,7 +885,7 @@
885
885
$('#tab_replace_id').select2({
886
886
minimumResultsForSearch: Infinity
887
887
}).on('change',function(e){
888
-
// так как парсятся не все языки, то на редактировании изменения будут только у тех, что обрабатываются через библиотеки (при вставке в документ у всех)
888
+
// since not all languages are parsed, on editing changes will only apply to those processed through libraries (on document insertion - to all)
Copy file name to clipboardExpand all lines: sdkjs-plugins/content/zotero/src/app/index.js
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -50,18 +50,18 @@ import "../styles.css";
50
50
vardisplayNoneClass="hidden";
51
51
varblurClass="blur";
52
52
53
-
// TODO добавить ещё обработку событий (удаление линков) их не нужно удалять
54
-
// из библиографии автоматически (это делать только при обновлении библиографии
55
-
// или refresh), но их точно нужно удалить из formatter!
56
-
// TODO добавить ещё обработку события (изменения линков), предлать пользователю
57
-
// обновить их или сохранить ручное форматирование (при ручном форматировании
58
-
// не меняем внешний вид цитаты при refresh (да и вообще не меняем))
59
-
// TODO сейчас всегда делаем полный refresh при каждом действии
60
-
// (обновлении, вставке линков, вставке библиографии), потому что мы не знаем
61
-
// что поменялось без событий (потом добавить ещё сравнение контента)
62
-
// TODO ms меняет линки (если стиль с нумерацией settings._bNumFormat) делает их по порядку
63
-
// как документе (для этого нужно знать где именно в документе мы вставляем цитату,
64
-
// какая цитата сверху и снизу от текущего курсора)
53
+
// TODO add event handling for link deletion - they should not be removed
54
+
// from bibliography automatically (do this only when updating bibliography
55
+
// or refresh), but they definitely need to be removed from formatter!
56
+
// TODO add event handling for link changes, offer the user
57
+
// to update them or keep manual formatting (with manual formatting
58
+
// we don't change citation appearance on refresh (and don't change at all))
59
+
// TODO currently we always do full refresh on every action
60
+
// (update, link insertion, bibliography insertion), because we don't know
61
+
// what changed without events (add content comparison later)
62
+
// TODO ms changes links (if style with numbering settings._bNumFormat) makes them in order
63
+
// as in document (for this we need to know where exactly in the document we insert citation,
64
+
// which citation is above and below the current cursor)
65
65
66
66
/** @type {Router} */
67
67
varrouter;
@@ -349,9 +349,9 @@ import "../styles.css";
349
349
})
350
350
.then(function(keys){
351
351
selectCitation.removeItems(keys);
352
-
// TODO есть проблема, что в плагине мы индексы обновили, а вот в документе нет (по идее надо обновить и индексы в документе перед вставкой)
353
-
// но тогда у нас уедет селект и новое поле вставится не там, поэтому пока обновлять приходится в конце
354
-
// такая же проблем с вставкой библиографии (при обнолении индексов в плагине надо бы их обновлять и в документе тоже)
352
+
// TODO there's a problem that we updated indexes in the plugin, but not in the document (ideally we should update indexes in document before insertion)
353
+
// but then our selection will shift and new field will be inserted in wrong place, so for now we have to update at the end
354
+
// same problem with bibliography insertion (when updating indexes in plugin we should also update them in document)
0 commit comments