View Full Version : using strings in place of preloaded text

03-16-2009, 11:56 PM
1) Script Title: Rich Text Editor

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm

3) Describe problem:
This should be easy but I cannot replace the preloaded text with a string variable. For example I simply want to replace:

writeRichText('rte2', 'preloaded <b>text</b>', 560, 100, true, false);


writeRichText('rte2', '<?php echo $variable ?>', 560, 100, true, false);

But it keeps making the script not work.

I would think that there would be an easy way to do this. Any advice would be helpful.

03-17-2009, 06:08 AM
turns out that it only caused the editor to not work for some values and not others. beats me. wasted too much time. gonna look for another text editor