WYSIWYG editor with very limited options

hey

im wanting to set up a very simple CMS to update text on a php page using a standard add/edit/delete process with php

i only want to allow the user to update text and only to add h1, h2,h3, p, li and links

is there a way to have a WYSIWYG edotor to just have these options?

cheers

craig

OK, found FCKeditor will do the trick…alows you to select exactly what toolbar options are included! perfect!

One thing to be careful with those WYSIWYG editors, make sure you strip out the tags you don’t want in your backend as well. Don’t ever trust user input, even if it’s gone through a WYSIWYG editor set to limit certain tags.

While i stand by FCKEditor, and it’s my WYSIWYG of choice, it’s not very lightweight either. Another alternative to a very lightweight and semi-flexible WYSIWYG is NicEdit http://nicedit.com/

nicEdit doesn’t allow as specific button selection as far as i can see such as specifying ONLY h1, h2, h3 - also the wiki docs are not online ATM!

^ I bet you it definitely does, every WYSIWYG editor I’ve ever used has allowed those settings.

also noticed that nicedit has a problem when using unordered lists in IE7 - puts whole content in the list and not just that selected.

leaning towards fckedit now

Another possibility is TinyMCE, it and NicEdit are my personal favorites.

thanks…having difficulty loading dynamic data into the fckeditor form…seems there is not too much info out in cyberspace on this matter either!!

maby ill take a look at tinymce also

thanlks

As an alternative to a WYSIWYG altogether, you might try some simple markup languages which are simple enough for beginners to use. My favorite is Markdown, but there are a few other options available as well.

It lets you create all of the items you listed, and a few other small things; I’m not sure if it’s possible to restrict the elements in the PHP version, though. There aren’t many extra tags though, so depending on your needs, it likely won’t be a problem.

[QUOTE=Jeff Wheeler;2355569]As an alternative to a WYSIWYG altogether, you might try some simple markup languages which are simple enough for beginners to use. My favorite is Markdown, but there are a few other options available as well.

It lets you create all of the items you listed, and a few other small things; I’m not sure if it’s possible to restrict the elements in the PHP version, though. There aren’t many extra tags though, so depending on your needs, it likely won’t be a problem.[/QUOTE]
Even though you know every single programming language ever created in the whole universe, many users will still require an explanation of the different tags and what not.

I’m convinced most users could learn Markdown pretty easily; it just seems so simple. :stuck_out_tongue:

The Markdown documentation is very concise, also; it is full of simple examples that teach very quickly. Plus, there are only like four syntax elements the user ever will need to know.

WYSIWYG editors have always frustrated me, because they never work quite perfectly, and they never produce code that is as perfect as I want.

[whisper]When talking about tags above, I was talking about both HTML elements and Markdown syntax elements very awkwardly.[/whisper]

When I was saying that, I was thinking more along the lines of blog comments and schtuff where the casual user won’t want to learn a new language just to post something. But now that I realize that he’s making a CMS I think you’re right.

Yeah, for comments on blogs I would weed out the newbies with OpenID — why bother getting all the way to authoring comment content before realizing that you’re too difficult a blog? :lol:

thinking i might just have code snippets to use on the add/edit page itself…!!

not as user friendly as id like but might just do for now

such as;

please insert your content into the following <tags> to ensure your content is styled to your website

<p>this is a paragraph here </p>

<p>this is another paragraph here and will start on a new line as it is in the p tags </p>

<h1>this is my main heading and will be larger and in the highlight colour </h1>

<h2>this is heading 2 </h2>

<p>to add a link into a paragraph just <a href=“http://www.linktothisdomain.com” target="_blank"> to link to another website</a>

<ul>
<li>list itme 2 goes here</li>
<li>list item 2</li>
<li>list item 3</li>
<li>just copy and past the li code to add more lest itmes</li>
<li>to start a whole seperate list copy the ul and li code</li>
</ul>

[QUOTE=wakeup;2355552]thanks…having difficulty loading dynamic data into the fckeditor form…seems there is not too much info out in cyberspace on this matter either!![/QUOTE]

wOW, dirty lies. Not only have I worked w/ FCK, but I’ve also used TinyMCE and I can guarantee you there is nothing that either of them can’t do. The only limitation of them comes from the developer using it.

To load dynamic data into ANY WYSIWYG is just like loading data into a regular textarea. If neither of them did this, then what would be the point of them?

Also, both the FCK and TinyMCE documentations are very extensive.

not lies really!! yep, limited by the developer i guess!! guess i was missing something!!

everytime i tried to insert the dynamic data i was getting a string error…

[QUOTE=wakeup;2356023]not lies really!! yep, limited by the developer i guess!! guess i was missing something!!

everytime i tried to insert the dynamic data i was getting a string error…[/QUOTE]

What’s the code you were using? Inserting dynamic data is as easy as using an echo based off a DB call.