Use string key to initialise editor mode instead of boolean

This commit is contained in:
Alasdair Smith 2018-07-11 10:44:58 +01:00
parent 25b995d3b8
commit d33c7f0149

View file

@ -14,7 +14,7 @@ define [
opening: true opening: true
trackChanges: false trackChanges: false
wantTrackChanges: false wantTrackChanges: false
showRichText: localStorage("editor.mode.#{@$scope.project_id}") or false showRichText: localStorage("editor.mode.#{@$scope.project_id}") == 'rich-text'
} }
@$scope.$on "entity:selected", (event, entity) => @$scope.$on "entity:selected", (event, entity) =>