[CKEditor] ckeditor get particular line number text

Forge Component
Published on 25 Aug by Prasad Rao
29 votes
Published on 25 Aug by Prasad Rao


Actually am trying to get particular line number of text from ckeditor.

for example  i have 22 lines of text in ckeditor 

and i have one button 

when am tap on button am passing line number
According to that line number i have to apply that line border in red color


In CKEditor the text is finally a HTML (if you click on source, you will see the final HTML), on button click, you will have to manipulate the html and update the HTML using ckeditor API (running a javascript code). Check this https://ckeditor.com/docs/ckeditor4/latest/examples/api.html