Categories | Question details Back To List | ||
Hi I am using dhtmlxGrid_v14_Pro_70813 professional version,
I am appending HTML tags in between cell’s text from submenu of our context menu, When I add any starting tag say, it got append correctly but now when I add end tag, say it got append twice, firstly at selected cursor position and secondly at the end of cell’s text. I know that the click outside the cell on submenu closes the editor, which causes end tag at end of cell’s text.
Is there any way to disable this functionality of grid provided that cell’s data should NOT be treated as pure text?
Answer posted on Oct 10, 2007 11:51 There are two way to process data a) as text - in such case your added tags will be visible as text b) as HTML - in such case value will be threated as HTML, but here problem can occur - if browser count inserted value as not valid HTML then it may try to correct it automatically - this is probably reason of adding some extra closing tag in described situation. >>click outside grid closes editor Can be disabled by commenting next line in dhtmlxGrid.js ( line 3446 in full version ) // dhtmlxEvent(document.body,"click",function(){ if (self.editStop) self.editStop(); }); |