funky_guitarist
09-22-2008, 12:33 AM
hi every body
i m try to read html text from a dataset into the richinputtext component.
i ve been reading the html from the same richinputtext by using
this. datapath.setNodeAttribute('inhalt',this.getHTMLTex t());
but when i read i back in theres always an additional line added ad
the end of the text.
in short: i gave in four lines of text when i read back i have one line more
ending up in having an increased height of the richinputtext object, which
is not want i want. i would like to achieve that the height stays the same.
has anybody an idea how to get around this
i attached same code
many thanx for your help
greetings mark
<canvas debug="true" >
<dataset name="ds" >
<wurzel >
<text inhalt="<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">mein inhaltadf</FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">dfa</FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">asadf</FONT></P>" />
</wurzel>
</dataset>
<datapointer name="dp" />
<button >
<handler name="onclick" >
dp.setXPath("ds:/wurzel/text");
var m_text = dp.getNodeAttribute('inhalt');
parent.mein_text.setText(m_text);
</handler>
</button>
<richinputtext y="50" datapath="ds:/wurzel/text" name="mein_text" multiline="true" width="100" selectable="true" bgcolor="yellow" >
</richinputtext>
</canvas>
i m try to read html text from a dataset into the richinputtext component.
i ve been reading the html from the same richinputtext by using
this. datapath.setNodeAttribute('inhalt',this.getHTMLTex t());
but when i read i back in theres always an additional line added ad
the end of the text.
in short: i gave in four lines of text when i read back i have one line more
ending up in having an increased height of the richinputtext object, which
is not want i want. i would like to achieve that the height stays the same.
has anybody an idea how to get around this
i attached same code
many thanx for your help
greetings mark
<canvas debug="true" >
<dataset name="ds" >
<wurzel >
<text inhalt="<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">mein inhaltadf</FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">dfa</FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">asadf</FONT></P>" />
</wurzel>
</dataset>
<datapointer name="dp" />
<button >
<handler name="onclick" >
dp.setXPath("ds:/wurzel/text");
var m_text = dp.getNodeAttribute('inhalt');
parent.mein_text.setText(m_text);
</handler>
</button>
<richinputtext y="50" datapath="ds:/wurzel/text" name="mein_text" multiline="true" width="100" selectable="true" bgcolor="yellow" >
</richinputtext>
</canvas>