PDA

View Full Version : Grid displaying enumeration from HtmlEditor



muselmanach
23 Feb 2012, 4:24 PM
After saving this text using my htmleditor....

32082

.. and loading this text in my grid, the grid row only shows:

32083

But i need to display the enumeration as well. Is there any way to do so?

My column is configured the following way:


{
id:'question_text',
width:120,
flex:1,
sortable:true,
dataIndex:'text',
renderer:function(value, p, record){
return Ext.String.format('<div>{0}<\/div>',value);
},
text:'Questions'}

vietits
23 Feb 2012, 5:49 PM
What does the value look like?


renderer:function(value, p, record){
return Ext.String.format('<div>{0}<\/div>', value);
},

muselmanach
23 Feb 2012, 6:52 PM
the value is fine, if i write the value back into a htmleditor it works perfectly.

the value contains an unsortedlist element with list items and stuff like that

vietits
23 Feb 2012, 7:53 PM
This is a problem of CSS. Try to add this definition to your CSS:


li {
margin-left: 15px;
list-style-type: decimal;
}

Also, you should use this in association with tdCls to scale down the area of applying this style definition.