vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

Can Links inside editable-textarea be followed instead of triggering Form Edit? #557

Closed Perseverance closed 6 years ago

Perseverance commented 8 years ago

Hi Team,

I am binding html inside a editable-textarea using ng-bind-html. In some cases there are links in the html that I would like to be followed instead of triggering open of the input field. I read the lib code and saw that you prevent default no matter what. Is there a workaround in this situation?

Example:

task.description = "<a href='http://example.com/'> Link </a>"

<a href="#" buttons="no" editable-textarea="task.description" e-rows="8" blur="submit" onbeforesave="detailsCtrl.updateDescription($data)">
        <div ng-bind-html="task.description"></div>
</a>
ckosloski commented 8 years ago

Instead of having the item as an editable element, use an editable form.

ckosloski commented 7 years ago

@Perseverance did you solve your problem?

ckosloski commented 6 years ago

@eugef Please close due to lack of response