Skip to content
Snippets Groups Projects
Commit 9e33c889 authored by chris's avatar chris
Browse files

show format changes on notes

parent f3801acf
No related branches found
No related tags found
1 merge request!151Various improvments
......@@ -63,7 +63,7 @@ export default ({ node, view }) => {
);
const tr = TrackChange.enabled
? trackedTransaction(transaction, noteView.state, user)
? trackedTransaction(transaction, noteView.state, user, 'notes')
: transaction;
const { state, transactions } = noteView.state.applyTransaction(tr);
......
......@@ -13,7 +13,7 @@ import replaceAroundStep from './helpers/replaceAroundStep';
import addMarkStep from './helpers/addMarkStep';
import removeMarkStep from './helpers/removeMarkStep';
const trackedTransaction = (tr, state, user) => {
const trackedTransaction = (tr, state, user, group = 'main') => {
// Don't track table operations
if (!tr.selectionSet) {
const $pos = state.selection.$anchor;
......@@ -45,7 +45,7 @@ const trackedTransaction = (tr, state, user) => {
return tr;
}
const group = tr.getMeta('outsideView') ? tr.getMeta('outsideView') : 'main';
// const group = tr.getMeta('outsideView') ? tr.getMeta('outsideView') : 'main';
const newTr = state.tr;
const map = new Mapping();
const date = Math.floor(Date.now() / 300000);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment