| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > JS WYSIWYG vs Serverside String.Replace? |
| View Poll Results: what do you use for your CMS? | |||
| JS WYSIWYG |
|
0 | 0% |
| String.Replace (or serverside equivalent) |
|
1 | 100.00% |
| Voters: 1. You may not vote on this poll | |||
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Oct 2006
Posts: 2,152
|
For all of the websites I have to create for clients, there will always be some form of CMS allowing them to edit the content, images, files, etc. So far I have used several different JS WYSIWYG Textareas. TinyMCE - Far too big, weighs in at about 2.2mb the last time I used it. FreeTextBox - Closed source asp.net control, utter shite. FCKEditor - Versions I have used have crashed browsers randomly, very comprehensive and configurable. Probably the best out of the 3. Problems with these:
So generally, they have been more trouble than they are worth. But it may be worth customizing FCKEditor to my needs, or attempting to make my own editor either from scratch or opensource code. So anyway. I went back to normal xhtml text areas, with plain text entering. Recently I have been experimenting with String.Replace in ASP.NET. At the moment it is just simple shit like replacing "/n" (plain text newline) with "<br /> (xhtml newline), and replacing "/n/n" (plain text 2 line spacing for paragraph) with "</p><p>" Going to be adding in BB code, like [url] [b] [i] [img], so hopefully any forum users or people with a bit of brainpower can still use some formatting. Might also back it up with a bit of JS like this forum uses to add in the tags on (ctrl+b) or the buttons at the top. So then, what is it you use? JS WYSIWYG or Serverside String.Replace? Reason im asking is because I want to make my CMS systems a doddle to use, and I assumed JS would be my saviour - seems it has caused more problems than it has solved. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Nov 2006
Location: London
Posts: 2
|
TinyMCE. Remove unneeded files for languages which you don't use and it should be lean - way leaner than FCKEditor! FCKeditor just gave us trouble and more trouble. And in Tiny you can intercept the "paste" actions and apply the cleanFromWord function. Can't remember exactly how but I managed to do that using some help in their forums. So you can end with a nice semi clean version, you just need to finish the cleaning process in your server if you want to add more complex rules. It's up to you. In mi opinion forcing the user to learn bbcode or textile or whatever just makes them like not willing to use the system. Specially non tech savvy people. Let's make them life easier |
|
|
|
#3 (permalink) | |
|
Senior Member
Join Date: Oct 2006
Posts: 2,152
|
Quote:
I think I will just treat it as a work in progress, keep it mostly serverside with the "string.replace()" ensuring the input is clean, and to use [bbcode] tags. Then when I get chance ill make my own javascript thing to add bbcode with bold, itallic, heading, etc buttons. Also with the "paste from word" thing, when you copy and paste from word into a standard textarea it doesnt include any of the excess code and formatting anyway (i think?) I think I will always keep the images separate from the text though, let them add in an image to somewhere predefined so they can't wreck the page too much. |
|
|
![]() |