neongrau
30 May 2007, 6:46 AM
when typing (or pasting) the html code for an inline style definition into a Ext.form.TextArea this will effect the whole application possibly ruining/messing up the whole application. :-/ :s 8-|
try pasting the following into any Ext.form.TextArea ( you may use the sample at http://extjs.com/deploy/ext/examples/form/dynamic.html to see this )
<style>*{display:none}</style>
is there a way to prevent this? or why is this happening at all?
---
some more findings:
happens only on TextArea's with "grow:true" and in FireFox or Opera, IE's inabilities with generated style tags seem to make him immune to this.
so i think html encoding of the content that gets copied to that hidden <pre> tag to calculate the needed size should do it.
(grow will currently also fail to size properly when inserting any html markup)
try pasting the following into any Ext.form.TextArea ( you may use the sample at http://extjs.com/deploy/ext/examples/form/dynamic.html to see this )
<style>*{display:none}</style>
is there a way to prevent this? or why is this happening at all?
---
some more findings:
happens only on TextArea's with "grow:true" and in FireFox or Opera, IE's inabilities with generated style tags seem to make him immune to this.
so i think html encoding of the content that gets copied to that hidden <pre> tag to calculate the needed size should do it.
(grow will currently also fail to size properly when inserting any html markup)