PDA

View Full Version : Do not succeed to take the whole place of the htmleditor body



Elfayer
23 Aug 2012, 6:38 AM
Hi,

Here is the code:


xtype: 'htmleditor',
itemId: 'htmlEditor',
margin: '0 0 0 0',
padding: '0 0 0 0',
height: 400,
width: 500


And here the render:
38204

I would like the image on the borders, is it possible?

Thanks in advance !

Tim Toady
23 Aug 2012, 9:00 AM
There is a private property called iframePad that might do what you want.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.HtmlEditor-property-iframePad

Elfayer
23 Aug 2012, 11:15 PM
No I don't want an Iframe on it, This is just an image and text:

Source :

<div style="background-image: url(/Content/images/wood-texture-background.jpg); height: 100%; width: 100%;" align="center"><font face="courier new"><b><font color="FFFFFF">First news ever !<br><br>This is the first <font color="FF0000" size="3"><u>NEWS</u></font> ever ! Take a look at it !</font></b></font></div>

Edit: Ok, after a try that's working! ;)