[TYPO3-dev] rtehtmlarea js question
Julian Kleinhans
jk at marketing-factory.de
Fri Jan 5 13:47:52 CET 2007
Hi List,
first, i wish all a happy new year ;-)
I have a problem with my own wizard for rtehtmlarea. i hope somebody can
give me a hint
With my wizard you can copy some text in tt_content (header, bodytext
and image). header and image is no problem with these javascript lines
window.opener.document.getElementsByName(\'data\[tt_content\]\['.$this->itemUid.'\]\[header\]_hr\')[0].value
= value;
window.opener.document.getElementsByName(\'data\[tt_content\]\['.$this->itemUid.'\]\[header\]\')[0].value
= value;
window.opener.document.getElementsByName(\'data\[tt_content\]\['.$this->itemUid.'\]\[image\]_list\')[0].innerHTML
= value;
window.opener.document.getElementsByName(\'data\[tt_content\]\['.$this->itemUid.'\]\[image\]\')[0].value
= value;
but bodytext is a problem for me.
i have tried this
window.opener.document.getElementsByName(\'data\[tt_content\]\['.$this->itemUid.'\]\[bodytext\]\')[0].innerHTML
= value;
and this
window.opener.document.getElementById(\'RTEarea1\').innerHTML = value;
but nothing happens. Only if i disable RTE or toogle to HTML view, then
its ok.
Then i look to this file
typo3conf\ext\rtehtmlarea\htmlarea\plugins\CharacterMap\popups\select_character.html
there is a function that exactly do what i need
function Set(string) {
var character = string;
if(window.opener && window.opener.Dialog)
window.opener.Dialog._return(character);
return false;
};
if i copy this line to my wizard
window.opener.Dialog._return(myValue);
i become a error message:
Fehler: window.opener.Dialog._return is not a function
Quelldatei: domain/typo3conf/ext/rtehtmlarea/htmlarea/popups/popup.js
Zeile: 141
Likewise i have include the popups/popup.js file and the function init.
but nothing :-(
i hope you can help me ;-)
greetz from Germany
Julian Kleinhans
--
Julian Kleinhans mailto:jk at marketing-factory.de
Marketing Factory Consulting GmbH http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
More information about the TYPO3-dev
mailing list