1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Add support for custom css across all notes (#925)

This commit is contained in:
Caleb John
2018-11-07 15:52:31 -07:00
committed by Laurent Cozic
parent 11ddc55911
commit cb1fd85ca4
4 changed files with 37 additions and 0 deletions

View File

@ -27,6 +27,7 @@ const defaultState = {
appState: 'starting',
hasDisabledSyncItems: false,
newNote: null,
customCss: '',
collapsedFolderIds: [],
clipperServer: {
startState: 'idle',
@ -585,6 +586,12 @@ const reducer = (state = defaultState, action) => {
newState.decryptionWorker = decryptionWorker;
break;
case 'LOAD_CUSTOM_CSS':
newState = Object.assign({}, state);
newState.customCss = action.css;
break;
case 'SET_NOTE_TAGS':
newState = Object.assign({}, state);
newState.selectedNoteTags = action.items;