cyberbuss
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);
with
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.
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);
with
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.