Page 1 of 1

wysiwyg text editor questions

Posted: Tue Mar 18, 2008 9:25 am
by Sindarin
I am trying to create a wysiwyg editor, however I need to do the things below:

When a button is pressed then it inserts a <something> tag at the caret position.

When a button labeled "URL" is pressed, then it pops up a window to set the url and the title of the hyperlink to be inserted.
Then it inserts a <a href="http://www.google.com">Google!</a> tag at the caret position.

Last but not least, how can I make it so that the user sees/edits the formatted text and not the source?

I have tried using tinymce but too much file chaos and can't organise it in my folders as I want it.

Re: wysiwyg text editor questions

Posted: Tue Mar 18, 2008 9:29 am
by Zoxive
Sindarin wrote:I have tried using tinymce but too much file chaos and can't organise it in my folders as I want it.
I never had a problem with Tinymce. Why not look at the source and see that it does?

You can even look at the source for phpbb like these forums to how they insert bb tags.

Re: wysiwyg text editor questions

Posted: Tue Mar 18, 2008 3:03 pm
by pickle
tinyMCE & FCKEditor are extremely complex. You're almost guaranteed to take less time making them fit, than you will building your own. The only downside to both these editors is their file browser support - but if you know what you're doing, you can bang one out in a few hours.

What do you mean by file chaos?