Implement editing comments

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-10-08 17:30:52 +02:00
parent 46720dc37b
commit dcc3601bd7
3 changed files with 51 additions and 12 deletions

View File

@@ -22,9 +22,10 @@
import app from '../app/App';
app.directive("contenteditable", function() {
app.directive("ngContenteditable", function($compile) {
return {
require: "ngModel",
restrict: 'A',
link: function(scope, element, attrs, ngModel) {
//read the text typed in the div (syncing model with the view)