A blog for web developers about all things ecommerce.: Adding an HTML editor to the Cartweaver admin
Adding an HTML editor to the Cartweaver admin
Friday, September 07, 2007 6:53:55 PM
We get a lot of questions about adding HTML editors to the Cartweaver admin to allow for more elaborate HTML editing. We don't have any included because of licensing issues, but it's really easy to add your own. I usually use TinyMCE from Moxicode, as it's free and seems to work well. There are others available. The easiest way to add it is to download the package and save it to your site. Then simply include some code at the top of the ProductForm.php, ProductForm.cfm, file (using the path where you saved it):
<!-- tinyMCE Script-->
<script type="text/javascript" src="<your installation path>/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
<!-- /tinyMCE -->
<form method="post" action="somepage">
<textarea name="content" style="width:100%">
</textarea>
</form>
Category tags: ASP, Cartweaver, ColdFusion, FAQ, PHP
Posted by Lawrence Cramer
Add comment
|
View comments (0) |
Permalink
|
Trackbacks (0)
|
Digg This
Before posting comments or trackbacks, please read the posting policy.
Blog RSS feed