PDA

View Full Version : richinputtext issue


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="&lt;P ALIGN=&quot;LEFT&quot;&gt;&lt;FONT FACE=&quot;Verdana&quot; SIZE=&quot;11&quot; COLOR=&quot;#000000&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;&gt;mein inhaltadf&lt;/FONT&gt;&lt;/P&gt;&lt;P ALIGN=&quot;LEFT&quot;&gt;&lt;FONT FACE=&quot;Verdana&quot; SIZE=&quot;11&quot; COLOR=&quot;#000000&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P ALIGN=&quot;LEFT&quot;&gt;&lt;FONT FACE=&quot;Verdana&quot; SIZE=&quot;11&quot; COLOR=&quot;#000000&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;&gt;dfa&lt;/FONT&gt;&lt;/P&gt;&lt;P ALIGN=&quot;LEFT&quot;&gt;&lt;FONT FACE=&quot;Verdana&quot; SIZE=&quot;11&quot; COLOR=&quot;#000000&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;&gt;asadf&lt;/FONT&gt;&lt;/P&gt;" />
</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>