View Single Post
  #1  
Old 11-18-2005, 11:26 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
WYSIWYG editor for Pixelpost (Done!)

I made a WYSIWYG editor for PP out of tiny mce.
To use it
  1. 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
  2. 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
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7

Last edited by raminia; 11-18-2005 at 11:57 AM.
Reply With Quote