| raminia |
11-18-2005 11:26 AM |
WYSIWYG editor for Pixelpost (Done!)
I made a WYSIWYG editor for PP out of tiny mce.
To use it - Download the zip file. It includes a folder named "tiny_mce". Copy it to includes directory of your pohotoblog.
Then you will have a directory like this
myphotoblog_path/includes/tiny_mce
- Open the admin/index.php file in an editor and append the line 188
HTML Code:
<script language="javascript" type="text/javascript" src="../includes/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script>
after </script> and before </head>.
you may customize the appreance of the editor as you like afterwards...
Dowload Link:
http://www.raminia.com/temp/tiny_mce.zip
|