Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
Instructions
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<script type="text/javascript" src="insertYourPath/tinymce/jscripts/tiny_mce/tiny_mce.js" ></script >
<script type="text/javascript" >
tinyMCE.init({
mode : "textareas",
theme : "simple" //(n.b. no trailing comma, this will be critical as you experiment later)
});
</script >
</head>
<body>
<form>
<textarea name="content" cols="50" rows="15" >
This is some content that will be editable with TinyMCE.
</textarea>
</form>
</body>
See an example of a simple form and in a few hours of experimentation you will have a form like this, as all the files have been uploaded.
Further more comprehensive instructions can be found on Installation, which you can move on to when you have mastered the Dummies version! If you are not a Dummy don't edit, as us Dummies like simple instructions!
OK so let's move on to become a more advanced Dummy.
Instructions
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple" //(n.b. no trailing comma, this will be critical as you experiment later)
});
</script>
With
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "emotions,spellchecker,advhr,insertdatetime,preview",
// Theme options - button# indicated the row# only
theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect",
theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
</script>
Now start experimenting, so open Full featured Example and "view source", add feature and buttons which you like. You will also have downloaded this file so it should be in your tinymce.dir tinymce/examples/full1.html, open in your editor - Dreamweaver, so you can see the source, just copy & paste the bits you like.
It is also a good time to start looking at the Wiki in depth.
A few things to note:
If you can do the following then you have a pretty good grasp of the fundamentals:
Read more about compressors for PHP here.
stripslashes()
You will need in php to incorporate stripslashes("$textarea"); code, if it has been configured in your server, which it is likely.
See more on removing slashes here on posting with php, it is something you need to get your head around, else your posted code just won't work!
The result of posting to data/file of the following:
This is your text.
<span style="color:#ff0000">yourText</span>
Without stripping the slashes will be:
echo($_POST['content']);
<span style=\"color:#ff0000\">yourText</span>
While incorporating the stripslashes("$textarea"); php code will be:
echo(stripslashes($_POST['content']));
<span style="color:#ff0000">yourText</span>
The \ is stripped.