473,473 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Who knows anything about CMSs and online WYSIWIG editors?

Hi,

How do I go about creating an online WYSIWIG editor where the user can
type in a special kind of textarea but the text will appear how it
would in a web page (but no html markup present).

For example:

http://tinymce.moxiecode.com/example...p?example=true

Something similar to the editor used in PHP-Nuke too. Im not too
bothered about all the fancy buttons and features, Im only wanting to
start with the basics now and then try out new things. Can anyone point
me to a website where this is explained in more detail on how this can
be achieved.

I did find a page on the Microsoft page but this used JScript and as
far as I was aware, IE5.5 and beyond. I would like to use purely
javascript and what other cross browser client side technologies if
possible.

Anyway, if someone could shine a little light on this subject that
would be great. Even if you dont know a great but know a website that
cover some of the basics.

Cheers

Burnsy

Sep 1 '05 #1
6 1455
bi******@yahoo.co.uk schrieb:
Hi,

How do I go about creating an online WYSIWIG editor where the user can
type in a special kind of textarea but the text will appear how it
would in a web page (but no html markup present).

For example:

http://tinymce.moxiecode.com/example...p?example=true

Something similar to the editor used in PHP-Nuke too. Im not too
bothered about all the fancy buttons and features, Im only wanting to
start with the basics now and then try out new things. Can anyone point
me to a website where this is explained in more detail on how this can
be achieved.

I did find a page on the Microsoft page but this used JScript and as
far as I was aware, IE5.5 and beyond. I would like to use purely
javascript and what other cross browser client side technologies if
possible.

Anyway, if someone could shine a little light on this subject that
would be great. Even if you dont know a great but know a website that
cover some of the basics.

Cheers

Burnsy


Have a look at FCKeditor (http://www.fckeditor.net/) - at least IMHO the best
online-Wysiwyg, free and cross-browser (well, at least IE5.5+ and Mozilla-based)
Sep 1 '05 #2
http://tinymce.moxiecode.com/example...p?example=true


Cheers, that looks the business. Ive not had a proper look yet but
having a lot of ideas. May post follow ups here shortly

Thanks again

Sep 2 '05 #3
Hi,

Im making good progress with this but Ive come across a little problem.
I open a file (using fread()) and replace the $oFCKeditor-> value with
the file contents, which at first glance appears to work.
Unfortunetely, when the page contains server side scripting it removes
it in the editor and if I were to write to the file again it would be
lost.

Why does it do that? Is there anyway around this? I have alternative
ideas but I would prefer to allow server-side scripting to be viewed.

Cheers

Burnsy

Sep 2 '05 #4
bi******@yahoo.co.uk schrieb:
Hi,

Im making good progress with this but Ive come across a little problem.
I open a file (using fread()) and replace the $oFCKeditor-> value with
the file contents, which at first glance appears to work.
Unfortunetely, when the page contains server side scripting it removes
it in the editor and if I were to write to the file again it would be
lost.

Why does it do that? Is there anyway around this? I have alternative
ideas but I would prefer to allow server-side scripting to be viewed.

Cheers

Burnsy


I don't know if i understand the problem right... Do you wanna edit files with
ie php-code inside in the editor? AFAIK FCKeditor-functions are based on the
DOM-tree of the document and so the serverside-code can't get handled correctly
in the browser.
Sep 3 '05 #5
> ie php-code inside in the editor? AFAIK FCKeditor-functions are based on the
DOM-tree of the document and so the serverside-code can't get handled correctly
in the browser.


I see that now, I take it that when you view source it isnt like
veiwing the source in, for example, Dreamweaver. Makes sense. How do
you normally handle pages that have server side coding, for example, I
have a box that lists the 5 most recent news articles. With the editor
it converts the PHP block into comments and then I loose it. My
solution at this time is to not have any PHP code on the pages that I
say are editable. Is this the only option. I did have the idea that the
PHP code could be converted like so:

<?php

echo "Hello World!";

?>

...to...

<!--#startphpcode#

echo "Hello World!";

#endphpcode#-->

Not sure if your familiar with PHP but Im sure you get the idea. Not
sure if Im still happy with the fact that the user could perhaps muck
it up in some way. It would be good if the comments were vsisible on
the editor WYSIWIG page.

Anyway, Ive pretty much got to grips with the whole thing. I sat for a
couple of hours trying to get my head round the file browser, which
seems to be fine with images. Is it possible to, in the configuration,
allow the upload of files such as MPEG, and WMV? This would allow me to
create a text link where the user can then view a video file through a
media player.

Burnsy

Sep 3 '05 #6
bi******@yahoo.co.uk schrieb:
ie php-code inside in the editor? AFAIK FCKeditor-functions are based on the
DOM-tree of the document and so the serverside-code can't get handled correctly
in the browser.

I see that now, I take it that when you view source it isnt like
veiwing the source in, for example, Dreamweaver. Makes sense. How do
you normally handle pages that have server side coding, for example, I
have a box that lists the 5 most recent news articles. With the editor
it converts the PHP block into comments and then I loose it. My
solution at this time is to not have any PHP code on the pages that I
say are editable. Is this the only option. I did have the idea that the
PHP code could be converted like so:


I generally don't allow severside-script getting edited by others. The places
where I'm using Online-Wysiwyg-editors are templates in CMS, all dynamical
content has to get set by special functions in the document editing template, ie
I'm giving the editor some dropdowns where he can chose a value from a list of
given values. So I can be sure, that the serverside-script is allways correctly
runable.

For placing dynamic content chosen the described way inside a html-editro-field,
you could use any placeholder-code, ie you give the users a list of Keywords
that have to be inserted like {KEYWORD} in the source for inline-replacements or
<p>{KEYWORD}</p> for block-replacements (or with any other syntax, just make
sure that the used syntax for replacements will never be ordinary content in a
document, you could even insert small images as placeholders). When the content
is taken from database for generating the page, you can replace the placeholders
with the desired content (bu it would be a bad idea IMHO to allow the execution
of this code ie by eval(), if you aren't absolutely sure, that every user
*exactly* knows what he's doing.

To make the edit more comfortable, the Placeholder-insertion can be made with
FCKeditors autotext feature (or is it called template, don't remember exactly).
Anyway, Ive pretty much got to grips with the whole thing. I sat for a
couple of hours trying to get my head round the file browser, which
seems to be fine with images. Is it possible to, in the configuration,
allow the upload of files such as MPEG, and WMV? This would allow me to
create a text link where the user can then view a video file through a
media player.


In the Filemanager-config, you can give a list of allowed File-Extensions. By
configuring this list, you could allow the upload of ie videos with FCKeditors
Filemanager. In this case, you have to look at the maximum allowed filesize for
uploaded files in php.ini.

But I'm using different other filemanagers with FCKeditor because the systems on
which I'm using FCKeditor allready had these filemanagement and imagemanagement
features.

A good place for information and hints to FCKeditor is the Sourceforge-Forum,
there are lots of problems and solutions described
(http://sourceforge.net/forum/forum.php?forum_id=379487).

Greetings

Martin
Sep 3 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Beach News | last post by:
Many times I've found myself needing to work in commando mode where I can't have access to my regular PC and tools to edit PHP based websites. It would be nice to do the editing in a web browser...
8
by: Radhika | last post by:
Hi, I am looking for some java based, opensource xml editors which support xml schemas. Can somebody help me??? thanks, Radhika.
21
by: windandwaves | last post by:
Hi Folk Right now, I am using notepad2 to edit my PHP files. Do you have any recommendations for any php editors I should purchase instead? I dont mind spending some money for a good product....
28
by: rich | last post by:
i know that there are die hard mark uppers that use notepad or some other plain editors...as far as graphic editors are concerned what are some reccomendations both commercial and if any freeware
68
by: James Dow Allen | last post by:
The gcc compiler treats malloc() specially! I have no particular question, but it might be fun to hear from anyone who knows about gcc's special behavior. Some may find this post interesting;...
0
by: CrispinH | last post by:
Hi I've just upgraded some Type Editors from 1.1 to 2.0 and whilst they compile OK, I'm not getting any results in the test harness PropertyGrid. Usually when you select a particular property,...
2
by: Simon Tamman | last post by:
Just wondering if anyone knows how this component works. If you set it up in the context of an Application.Run it works on it's worker thread but it updates the progress on the UI thread. My...
2
by: geevaa | last post by:
Hi group, can anyone guide me with the link where i can find free (javascript) code for online editor like fck editor thanks
15
by: dreen1 | last post by:
Hello! Does any one of you know about some kind of PHP IDE (or at least an editor with syntax highlighting) that works online? It would be absolutely great if there was something like Google...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.