app/views/promethee/edit/write/component/_text.html.erb in promethee-1.0.15 vs app/views/promethee/edit/write/component/_text.html.erb in promethee-1.0.16

- old
+ new

@@ -25,27 +25,29 @@ } } }); promethee.controller('TextController', ['$scope', function($scope) { - $scope.editing = false; $scope.edit = function() { this.editing = true; }; $scope.complete = function() { this.editing = false; }; + $scope.toggleEdit = function() { + this.editing = !this.editing; + }; + $scope.options = { toolbar: [ ['headline', ['style']], ['style', ['bold', 'italic']], ['alignment', ['ul', 'ol', 'paragraph']], ['code', ['codeview']] ] }; - }]); </script>