PDA

View Full Version : embed WYSIWIG type editor in php page?



jacob
05-15-2006, 03:32 PM
Can anyone recommend a box similiar to the one i'm typing into right now that i can use within a PHP page? I have no idea what they're called but almost a WYSIWIG editor I can use within a blogging script so I dont have to type so much raw HTML into the body of my posts? Oh, and one that works in firefox. a friend recommended one but it doesn't work in FF.

tia!

r2d2
05-15-2006, 03:51 PM
If no one has any particular recommendations, HotScripts has a few available:

In PHP section:
http://www.hotscripts.com/PHP/Scripts_and_Programs/WYSIWYG_Editors/index.html

In Javascript section:
http://www.hotscripts.com/JavaScript/Scripts_and_Programs/WYSIWYG_Editors/index.html

Nico
05-15-2006, 08:39 PM
I would suggest FCKeditor (http://www.fckeditor.net/) and TinyMCE (http://tinymce.moxiecode.com/)

Nicolas

izwar
05-15-2006, 08:42 PM
how do you install tiny mice for example i have a photo profile site, and in the my profile area where you type ur information in about me i want to put the tinyMCE thing, so it shows the data on their profile page. How would i go about that.

MarkB
05-17-2006, 02:08 AM
Here's the code I use to replace any textarea with the tinyMCE editing box:



<script language="javascript" type="text/javascript" src="/path/to/javascript/tiny_mce/tiny_mce.js"></script>

<script language="javascript" type="text/javascript">
tinyMCE.init({
theme: "advanced",
width: "500",
height: "400",
theme_advanced_buttons1 : "fontselect, fontsizeselect,bold,italic,underline, strikethrough, separator,image",
theme_advanced_buttons2: "justifyleft, justifycenter,justifyright,justifyfull,forecolor,b ackcolor,seperator,size,help",
theme_advanced_buttons3: "",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
mode : "textareas"
});
</script>

Emancipator
05-17-2006, 09:57 AM
the tinymce looks like one i bought commercially. The one i bought though doesnt take near as long to load. But for FREE it looks like a great option. Thanks for posting it Mark.