google-code-export / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
1 stars 0 forks source link

Getting wrong content from textarea #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the textarea contains tags (such as <div>, <span>, etc tags), when it
will get transformed with .wysiwyg() the tags will be lost.

This happenes because you use .text() instead on .html().

The line with the problem is located at line376:

"this.initialContent = $(element).text();"

and it should be changed to:

this.initialContent = $(element).html();

* I've also attached a corrected version of the js.

Original issue reported on code.google.com by blindatt...@gmail.com on 5 Feb 2009 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
I suppose that is fixed after looking into sources in trunk.

Original comment by akzhan.a...@gmail.com on 23 Dec 2009 at 5:20