jeudi 1 janvier 2015

Paste html content as plain text in contenteditable div using AngularJs


I want to paste text selected from a certain document(pdf, docx, html), into a div of contenteditable type.


Now I want to remove all the formatting of the clipboard text before it is rendered. So, the final content pasted should be a plain text.


An analogue of this scenario can be pasting content into Windows Notepad.


How could this be done using AngularJs. Or there exist any other javascript library to acomplish this.





Aucun commentaire:

Enregistrer un commentaire