Adding more than one rich text editor inside the form

Feb 21, 2008 at 6:32 AM
if i add more then one RichTextEditor in the form 2 nd one is not working
can u please help me
Apr 7, 2008 at 3:29 PM
I am having the same issue. If anyone has a solution please share it.
Apr 8, 2008 at 6:29 PM
This issue is related to the javascript that the control generates is not unique to the specific instance of the control. Variable name and function name conflicts cause issues with multiple instances of the RTE on one page. To get around this you could either change the rte javascript objects and functions to account for multiple instances, or change the source so the javascript is generated dynamically in the C# code which enables unique names to be created. Both options require a good deal of work, I opted for option 2. There may be a better/easier way to do this... but I couldn't find one.
Apr 16, 2008 at 7:12 PM
mrfinger, care to share with the group? I'm not a C# programmer, so where and what to change would be greatly appreciated.
Apr 18, 2008 at 1:47 PM
Hello, The changes involved are quite vast. Unfortunately I don't currently have the time in my schedule to go through all of the modifications needed and post them here. My work load should lighten as summer approaches and then perhaps I can craft together something to share and maybe even worth suggesting to be added to future release. Sorry for not being able to share more at this current moment. A lot of the code is actually Javascript code which needs to be redone. All of the "loose" functions in the js files of the RTE need to be put in to objects... the C# code then needs to be modified to create unique instances of the objects for each rte. This methodology can be studied by looking at the code of other AJAX controls... the AJAX Toolkit is a good place to look.
Developer
Jun 4, 2008 at 3:35 AM
I added this as an issue.