PDA

View Full Version : Html editor



sakaext
3 Nov 2009, 11:05 PM
In html there is a reserved space at the starting (when the html is clicked and the cursor comes after one space )And when the text entered in the editor ,it saves with "&<nbsp>;" in the database. When that text is called to extjs grid the text comes with a "&<nbsp>;" and the text which was typed. How to avoid that

uniring
4 Nov 2009, 5:17 AM
Search the forums before asking, that's pretty old: http://www.extjs.com/forum/showthread.php?t=20374

In ExtJS 3.0 i think this is fixed, at least the demo works well:
http://www.extjs.com/deploy/dev/examples/form/dynamic.html

If you're using ExtJS 2.0 and don't want to update you can try to delete the first character if it's a space before saving the row to the database. And you're using some kind of html escape when saving or loading from the database so you get html tags instead of the formatted text.