wysiwyg text editor questions

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

wysiwyg text editor questions

Post 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.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: wysiwyg text editor questions

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: wysiwyg text editor questions

Post 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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply