Hi, sorry if this topic has already been brought up but my searches didn't come up with anything.
Anyways, I want to use some javascript to add editors when the user clicks the add box. The problem is getting the boxes to have unique identifiers. Basically I want it to be fckeditor1, fckeditor2, etc.
However, when I try to do
or any variation of the id='"+newID+"', etc, I always get an error. Any suggestions on how I can get around this? Thanks!
Anyways, I want to use some javascript to add editors when the user clicks the add box. The problem is getting the boxes to have unique identifiers. Basically I want it to be fckeditor1, fckeditor2, etc.
However, when I try to do
var newID = "FCKeditor"+newEditor; var oFCKeditor = <FCKEDITORV2:FCKEDITOR id='+newID+' runat='server' BasePath='~/FCKeditor/'></FCKEDITORV2:FCKEDITOR>; document.getElementById('notes').innerHTML+=oFCKeditor;
or any variation of the id='"+newID+"', etc, I always get an error. Any suggestions on how I can get around this? Thanks!
Re: Dynamically adding FCKeditors
In JavaScript, you should probably insert a new TEXTAREA and then use the editor's textarea replacement method to insert a new editor at the location you targeted with the TEXTAREA insertion.