Forum Moderators: coopster

Message Too Old, No Replies

PHP WYSIWYG HTML Editor

Anyone know of any good ones.

         

ryan_b83

2:51 pm on Mar 15, 2007 (gmt 0)

10+ Year Member



Hello, i have a website that the administrator (who has no knowledge beyond a word processor) wants to be able to make simple text/image changes to existing web pages. The server runs PHP, and i was wondering if anyone knew of any basic WYSIWYG HTML editors that are easy to implement. PHP based of course woudl be ideal.

The next step would be to go to Adobe Contribute, but I was seeking a free solution rather than making them pay 150 bucks for a program that they would only use 2 or 3 featurs.

Thanks alot!

Ryan

joelgreen

4:39 pm on Mar 15, 2007 (gmt 0)

10+ Year Member



FCKEditor

bcolflesh

4:41 pm on Mar 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Aptana is nice free IDE:

[aptana.com...]

ryan_b83

12:00 am on Mar 16, 2007 (gmt 0)

10+ Year Member



Thanks guys, the FCKeditor seemed like a good option. I've uploaded it to the server and was able to play around with the sample code.

I know this isn't a site to talk about FCKeditor, but maybe even if someone could steer me in the right direction.

How do you open/edit/save your website's HMTL files in the FCKeditor?

Thanks a bunch everyone!
Ryan

joelgreen

11:33 am on Mar 16, 2007 (gmt 0)

10+ Year Member



When you finished editing and form is submitted HTML code from the editor is passed to php script on the server in some variable. PHP script can do anything with that HTML code: save as html file, save to database, etc.

Scally_Ally

1:41 pm on Mar 16, 2007 (gmt 0)

10+ Year Member



I used to use FCK but found that it was taking a while to load on the page, also i found a compatibility issue with firefox. I started using Spaw and found it much better and faster.
You can also easily write your own add ons for it too..
Ally

ryan_b83

2:45 pm on Mar 17, 2007 (gmt 0)

10+ Year Member



But how can these programs handle blocks of PHP code? You would have to open the file on the server directly, in which case it would contain the PHP code.

The only other way i can think of is it would open the final rendered HTML of the file, but thats basically useless because PHP built it?

So for example, if I have a php script that looks like this, how would you edit just the 'content area':

<?php
display_top();
?>

<p>Content area of the site goes here</p>

<?php
display_bottom();
?>

Thanks a bunch!
Ryan

jatar_k

4:53 pm on Mar 17, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



well, I would just use text based editors and edit the code

any wysisyg editor bugs me with my php, I just edit code, upload and view in browser to see changes

no big thing

or have a local dev environment and then you don't even need to upload, just view the same file you are editing in a browser and refresh as you save changes

OswaldG

1:53 pm on Mar 18, 2007 (gmt 0)

10+ Year Member



ryan_b83,

With regard to how you get the editor to edit only the contents, I accomplished this using a text editor by separating the content that the user could edit into another file. Then my php script just calls that file for the content section. The user does not edit the content directly inside the php file.

I ran into this sort of tutorial on WYSIWYG editors a while back that you might find helpful. I never went that direction, however.

oswaldg

[edited by: eelixduppy at 2:07 pm (utc) on Mar. 18, 2007]
[edit reason] no URLs, please [/edit]

henry0

2:43 pm on Mar 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am with Jatar_k
if you include your content in between <div> then the editor code messes up your CSS
BUT mostly I gave up editors because if renders some filter/check input almost impossible
if in a regex you allow for everthing generated by the WYSIWYG, then you pretty much allow the user entering anything! No good.