firefox - XUL - textbox problem -


I am writing a Firefox extension when a user highlights and clicks on the selected text on a webpage, the extension Captures text and displays it in a text box (axle window). The textbox shows the correct presentation (such as line breaks, spaces, * li tags). But the problem occurs when I try to store the text box value in a variable. Line breaks have gone.

var selText = document.getElementById ("txtboxSelectedText"). value; //

Can anyone help?

Thank you very much.

Is this a real textbox or rich text editor such as TinyEye or OpenYissivig? In a real textbox, there are linebacks in Rich Text Editors, they are actually IFrame with HTML content ... which looks like a line break, actually a & lt; Br / & gt; tag

For this reason I suspect that you can not get the li tag (and their respective bullet points) in the normal textbox


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -