Skip to content

Commit

Permalink
FIX: Only allow plaintext in the comment editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerenzella committed Apr 15, 2019
1 parent 430c1a5 commit 7948386
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ngf-change="modelChanged($files, upload)" ngf-accept="{{upload.accept}}" ngf-drag-over-class="{accept:'file-over', reject:'file-over', delay:100}"
ngf-drop-available="dropSupported">

<div id="textField" contenteditable ng-keypress="keyPress($event)" ng-model="comment.text" placeholder="Type a comment, or try dragging an image, audio or pdf..."></div>
<div id="textField" contenteditable="plaintext-only" ng-keypress="keyPress($event)" ng-model="comment.text" placeholder="Type a comment, or try dragging an image, audio or pdf..."></div>

<p ng-show="upload.display.error">
Invalid file type!
Expand Down

0 comments on commit 7948386

Please sign in to comment.