Opera and FCKeditor: you rule

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/10/2009 6:32:10 AM
Gravatar
Total Posts 251

Opera and FCKeditor: you rule

I see that in my forum, an user was embedding emoticons from tinymce instead of the selected FCKeditor

So, i was about to write a bug segnalation, since this user is a 13 years old kid, so I don't think that he just tried to make me crazy by "guessing" ~/ClientScript/tiny_mce/plugins/emotions/images/smiley-cool.gif (also, how he would be able to use another

I created a new account in my forum, and i saw that normal users have fckeditor as default editor

Then i read the log, the user details are this:

Opera 9, Windows XP, 1280x800

 

A quick google and i saw that opera+fckeditor=fail

Wow, you are really smart!

 

About this... What will happen if i delete tinymce? Opera users will be presented to a blank form where to write raw html?

Dangerous... but you filter the posts with neathtml, so...

 

6/10/2009 7:12:25 AM
Gravatar
Total Posts 18439

Re: Opera and FCKeditor: you rule

Hi,

I'm glad you brougt this up, it was a problem with older verisons of FCKeditor, so I put in this logic to force TinyMCE if the browser is Opera. FCKeditor, has calimed to support Opera for a long time but back when I tried it it did not work so I added this workaround.

But you brining it up again reminded me that I had not tested the issue in more recent upgrades to FCKeditor so I just tried it just now on my local machine and it works for me using the latest version of Opera. Luckily I made it a config option so you can enable FCKeditor in Opera easily, just add this to your user.config

<add key="ForceTinyMCEInOpera" value="false" />

You may want to try it yourself with Opera on your site after making this config change to verify it is working.

No matter which editor is configured, if javascript is disabled the user gets a plain text area. While the editor if enabled does make it more difficult to enter some things like javascript if the source toolbar isn't available, one cannot rely on that kind of protection but must not trust any user input other than from specific trusted users, so use of NeatHtml is essential anywhere that untrusted users may enter content.

Its not easy/possible to use rich media like javascript widgets and videos and other embedded objects using NeatHtml, so in the Blog and the Html Content module and some other features we assume a trusted user and do not use NeatHtml, but in Forums and blog comments we use it. So we are treating our content authors and blog users as trusted users.

Best,

Joe

6/29/2009 4:23:57 AM
Gravatar
Total Posts 251

Re: Opera and FCKeditor: you rule

If i remember correctly, two versions ago you added a "plain html" input editor

This is a feature request:

Today I installed the iphone simulator, and it looks like that the iphone can render perfectly both fckeditor, tinymce, ckeditor... but, due to its input method/render method (as i understood, the iphone makes a full page PNG, to allow quick zooming/panning) , it does not allow to do anything

I don't own an iphone, and i don't know anyone that can verify that, but i guess, based on my simulator experiments (basically an x86 version of iphone os) that the iphone does not support any js rich text editors

Maybe it will be good to add a check like you did for opera

if is an iphone, then no rich text editor

6/29/2009 5:48:17 AM
Gravatar
Total Posts 18439

Re: Opera and FCKeditor: you rule

I will do this. I have an iPhone.

Best,

Joe 

6/29/2009 7:27:37 AM
Gravatar
Total Posts 18439

Re: Opera and FCKeditor: you rule

This post was made using an iPhone!
cheers
Joe
6/29/2009 8:30:32 AM
Gravatar
Total Posts 251

Re: Opera and FCKeditor: you rule

wow, so fast

6/29/2009 8:35:48 AM
Gravatar
Total Posts 18439

Re: Opera and FCKeditor: you rule

Well, we already had a plain text editor, it was just commented out in mojoEditor.config, so all I had to do was uncomment it and then add the check against the user agent to determine if its iphone and make it use that editor.

I had always assumed the editor was working since it renders in the iphone but I just had never tried it until you pointed it out that it doesn't work. I just have not really used my iphone for most web use because 99% of the time I'm near a full computer. Like I check my email on iphone but I've never replied to or sent an email using my iphone, it can always wait till I get back to my pc since I'm so seldom far away from my pc.

Best,

Joe

8/9/2009 10:24:07 AM
Gravatar
Total Posts 251

Re: Opera and FCKeditor: you rule

Hi, I just got an android handset, and it has similar problem to the iphone. Well, it can write content, if you click on "paste as simple text", and write in the popup, but otherwise, is not possible to edit the text

Maybe you could add a check also for android?

Mozilla/5.0 (Linux; U; Android 1.0; en-us; dream) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2

thank you

8/9/2009 11:51:24 AM
Gravatar
Total Posts 18439

Re: Opera and FCKeditor: you rule

Will do.

Best,

Joe 

You must sign in to post in the forums. This thread is closed to new posts.