2011-01-05 16 views
3

Ich habe ein Plugin erstellt, das ein tinyMCEPopup öffnet. Im tinyMCEPopup habe ich mehrere Textareas und brauche sie als winzige MCE-Textareas. Hier ist ein vereinfachte Beispiel der Pop-up-Datei:tinyMCE textarea in einem tinyMCEPopup

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
    <title></title> 
    <script type="text/javascript" src="../../tiny_mce_popup.js"></script> 
</head> 
<body> 
<form action="#" id="multiBoxes"> 
    <textarea name="content" id="content" cols="50" rows="15" ></textarea> 
</form> 
</body> 
</html> 

Ich habe versucht, die init() es oder tinyMCE.execCommand('mceAddControl', false, 'content'); ... aber es funktioniert nicht! Irgendein Vorschlag ?!

Dank

Marco

Antwort

0

versuchen, die richtigen IDs zu verwenden:

tinyMCEPopup.execCommand('mceAddControl', false, my_textarea_id); 

oder

tinyMCE.execCommand('mceAddControl', false, my_textarea_id); 

Beachten Sie, dass diese IDs eindeutig sein müssen und dass Sie entfernen Steuerung onClose des Popups.

+0

Ja, natürlich, sie sind einzigartig, und ich überprüfe, ob sie korrekt sind ... sie sind = ( Danke – Marco

+0

Ich denke, dass Sie den execCommand von tinyMCEPopup aufrufen müssen – Thariama