Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Joker™ on June 05, 2010, 07:36:49 AM

Title: Problem with post box using opera
Post by: Joker™ on June 05, 2010, 07:36:49 AM
I'm using latest version of opera 10.53 with windows 7 and found problem in RC3
i've found bug with opera on my site as well as on "SMF site" itself.


Like in other browsers if we click on the text area where we write for post the cursor gets shifted and we can write then , but in opera when i click on post box nothing happened.


To make a post from opera one has to click on subject box first , type subject there and then using "TAB" key on keyboard u can come down to post box.


Also the gap after pressing "Enter" while typing to start a new line is very much.
It's more like a complete one line gap between previous and present line.


Please see the gap problem in the pic attached.
Title: Re: Problem with post box using opera
Post by: Arantor on June 06, 2010, 08:58:29 PM
Using WYSIWYG or not?
Title: Re: Problem with post box using opera
Post by: Joker™ on June 07, 2010, 12:28:57 AM
yes using WYSIWYG.when it is off problem is not there
Title: Re: Problem with post box using opera
Post by: Arantor on June 07, 2010, 09:45:47 AM
Oh yay another WYSIWYG bug.
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 05:20:05 AM
I have no bug with Opera. I use it on a daily hourly secondly basis.
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 05:36:35 AM
Quote from: Nao on June 11, 2010, 05:20:05 AM
I have no bug with Opera. I use it on a daily hourly secondly basis.

Which exact version are you using ?
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 06:03:02 AM
10.54 Alpha.
It's been replaced with 10.60 Alpha since then, but I'm staying on 10.54. Working better for me.
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 06:08:58 AM
Mine is 10.53 and i m facing problem both here on SMF and on my forum when using it with WYSIWYG enabled
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 09:02:30 AM
I think (I'm not sure) that I fixed the focus thing in a recent SVN, so it will be in RC4.
However, SM.org works fine for me. I don't have focus when I click on Wysiwyg (which I don't use), but I get it as soon as I click anywhere inside the message body (NOT outside the body itself -- click on an empty area of the message box won't work.)
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 09:14:48 AM
Quote from: Nao on June 11, 2010, 09:02:30 AM
I think (I'm not sure) that I fixed the focus thing in a recent SVN, so it will be in RC4.
However, SM.org works fine for me. I don't have focus when I click on Wysiwyg (which I don't use), but I get it as soon as I click anywhere inside the message body (NOT outside the body itself -- click on an empty area of the message box won't work.)

Most of users on my forum use WYSIWYG.also for me only way to focus on text area area is by using tab key to transfer cursor from subject field to postbox field.
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 09:26:40 AM
Try editing editor.js

// Set the focus for the editing window.
smc_Editor.prototype.setFocus = function(force_both)
{
if (!this.bRichTextEnabled)
this.oTextHandle.focus();
else
this.oFrameWindow.focus();
}


Replace that block with:

// Set the focus for the editing window.
smc_Editor.prototype.setFocus = function(force_both)
{
if (!this.bRichTextEnabled)
this.oTextHandle.focus();
else if (is_ff || is_opera)
this.oFrameHandle.focus();
else
this.oFrameWindow.focus();
}


This is what I committed a couple of weeks ago. Try it if you'd like.
I also fixed more Opera+post editor bugs but it was in other files such as script.js so you'll have to wait for RC4.
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 09:45:58 AM
implemented the above solution , cleared site and browser caches.

it worked partially fine .

After writing title when i bought my cursor down to postbox area ,


If the cursor is in area of 1-2 line then u can click and focus comes ,

But if u take cursor below that then you can't click .(i don't know how to describe it just want to say that if u take cursor below area of 2 lines then u cant click to get focus on window)
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 10:36:01 AM
I already told you that you can't click on the empty space in the message box. You have to click on the text itself. This is probably a limitation of Opera.

PS: real men use plain text, not Wysiwyg. :P
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 10:38:32 AM
Quote from: Nao on June 11, 2010, 10:36:01 AM
I already told you that you can't click on the empty space in the message box. You have to click on the text itself. This is probably a limitation of Opera.

you mean a buug in opera :o

Quote from: Nao on June 11, 2010, 10:36:01 AM
PS: real men use plain text, not Wysiwyg. :P

But as option is available people are going to use it :)
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 10:51:33 AM
Quote from: sid2varun on June 11, 2010, 10:38:32 AM
you mean a buug in opera :o
No. A bug is something that is unwanted. This may be due to a combination of Opera working things out differently, and SMF2 being written with Firefox or something else in mind. If it's not tested on all browsers, then it may break on them. IE is full of bugs. Opera is just full of implementation differences. It's still standard.

QuoteBut as option is available people are going to use it :)
Well... IE users can do all they want.
Real men use Opera, and real men don't use Wysiwyg. My point exactly.
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 10:52:37 AM
BTW, the focus shows up automatically in Opera after you click twice on the Wysiwyg button. Only the first time it won't show up. Second is just fine.
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 10:55:51 AM
Quote from: Nao on June 11, 2010, 10:51:33 AM
Well... IE users can do all they want.
Real men use Opera, and real men don't use Wysiwyg. My point exactly.

Hahahaha , that's a real stress buster for me after such a hectic day , really :D .

I just reported the bug if found , now it's upto smf team to look after it ;) .

QuoteReally seen a lot of bugs being removed as regular follower of Bugtracker :) . Keep up the gud spirits.
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 10:56:44 AM
Quote from: Nao on June 11, 2010, 10:52:37 AM
BTW, the focus shows up automatically in Opera after you click twice on the Wysiwyg button. Only the first time it won't show up. Second is just fine.

I'm keeping WYSIWYG on by default from the profile area , not activating it from by post itself.
Title: Re: Problem with post box using opera
Post by: Nao 尚 on June 11, 2010, 11:13:02 AM
Well, I personally reached my limits with that fix. (I didn't even come up with it... I was close to it, though :P)
I'm really NOT into wysiwyg crap. I'm all for it when it comes to fixing bugs related to non-wysiwyg mode. But Wysiwyg -- I don't even know how it's built in the first place. (HTML inserted through an iframe, maybe? Don't remember...)
Title: Re: Problem with post box using opera
Post by: Joker™ on June 11, 2010, 11:21:24 AM
hmmmm ok , it's upto u guys how to handle this now :).
Thanks for bearing me that far :D
Title: Re: Problem with post box using opera
Post by: Norv on July 17, 2010, 01:57:45 PM
Thank you very much for the report.
I think it may be worth testing on the latest build/svn version, as I think there were a few wysiwyg fixes since RC3.
Title: Re: Problem with post box using opera
Post by: Illori on November 14, 2011, 07:39:36 AM
tested in opera 11.52 windows version and this still exists, when using WYSISYG editor in opera and "enter" key almost seems to double space where firefox does not.
Title: Re: Problem with post box using opera
Post by: Joker™ on November 14, 2011, 10:19:04 AM
Quote from: Norv on July 17, 2010, 01:57:45 PM
Thank you very much for the report.
I think it may be worth testing on the latest build/svn version, as I think there were a few wysiwyg fixes since RC3.

Happens on

- fresh SMF 2.0.1
- WYSIWYG enabled
- Opera 11.52
- Windows 7 64 bit
Title: Re: Problem with post box using opera
Post by: emanuele on March 08, 2012, 09:09:12 AM
meh...another WYSIWYG problem...

/me hates WYSIWYG!! :P

Maybe a bit of css somewhere can fix the issue...let's see. O:)

ETA:
dirty, very dirty:

Removed the first option.

Still a bit dirty, but less than before and it works on the first line too:
Code (find) Select
// Apply the class...
this.oFrameDocument.body.className = 'rich_editor';


Code (add after) Select

if (is_opera)
{
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.rich_editor p { margin: 0; }';
this.oFrameDocument.getElementsByTagName('head')[0].appendChild(style);
}
Title: Re: Problem with post box using opera
Post by: kat on March 08, 2012, 10:06:00 AM
Quote from: emanuele on March 08, 2012, 09:09:12 AM
/me hates WYSIWYG!! :P

Amen to that, brother Manny!