I have a pre-tag which is binded to FileReader-Result to parse text. The tag is editable and I would like to get the updated content after a click on a button. Unfortunately I always get the origin text content.
HTML
<pre contenteditable="true" id="rangy" class="document-content textareac"
ng-bind="vm.document.content" ng-hide="document.mode=='edit'"
contenteditable>
</pre>
JS
var txt = vm.document.content;
I've tried to get it by a query select, but It do not work. It gives me an HTML-object.
t = angular.element(document.querySelector('#rangy'));
alert(t);
// alert(JSON.stringify(t);