shanejeffery86 Posted December 26, 2010 Share Posted December 26, 2010 Hey all. I am adding text to a textArea via Javascript in Chrome (doing it a totally different way in Firefox/IE as Chrome does not support contentWindows). Here is my code: document.getElementById("vB_Editor_001_textarea").value += '<font color="white"><b>' + numberLabel + ':</b> ' + armory + '</font><br/>'; This HTML is getting put directly into the textArea without being parsed. How can I make it parse into regular text with the HTML markup when it hits the textArea? Thanks! Link to comment https://forums.phpfreaks.com/topic/222654-innerhtml-parse-for-chrome/ Share on other sites More sharing options...
brianlange Posted December 27, 2010 Share Posted December 27, 2010 You can't insert html inside of a textarea. You'll have to use a rich text editor like ckeditor or make a div editable and assign the html to its innerHTML property. Link to comment https://forums.phpfreaks.com/topic/222654-innerhtml-parse-for-chrome/#findComment-1151681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.