google-code-export / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
1 stars 0 forks source link

Get Focus #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $('#wysiwyg').focus()

What is the expected output? What do you see instead?

 The control get focus. Nothing happen.

Please use labels and text to provide additional information.

 This becouse the real element is the textarea. I should add some like this:

{{{
$(this.original).focus(function()
{
    self.editorDoc.focus();
});
}}}

Original issue reported on code.google.com by joksnet on 30 Mar 2008 at 11:29

GoogleCodeExporter commented 9 years ago
Fixed in r17. But still have problems in FF :(

Original comment by joksnet on 31 Mar 2008 at 7:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This block caused the original textarea not to be editable on IE6 (see ticket 
#38). 
To fix that, I changed to:

            $(this.original).focus(function()
            {
                if ( ! ($.browser.msie) ) {
                    $(self.editorDoc.body).focus();
                }
            });

Original comment by tyler.sc...@gmail.com on 13 May 2009 at 4:24

GoogleCodeExporter commented 9 years ago
Issue 38 has been merged into this issue.

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 6:09

GoogleCodeExporter commented 9 years ago
Comment applied to trunk.

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 6:17

GoogleCodeExporter commented 9 years ago
Hi, still not getting focus when using $('#wysiwyg').focus()

I'm with jquery 1.4.1 and jwysiwyg 0.6

Any thoughts on it?

thanks

Original comment by cristian...@gmail.com on 1 Feb 2010 at 7:07

GoogleCodeExporter commented 9 years ago
Not work with jquery 1.4.1 and jwysiwyg 0.6?
Help!!!

Original comment by art...@gmail.com on 5 Feb 2010 at 1:07

GoogleCodeExporter commented 9 years ago
A bit late I think...
I don't know what the $(this.orginal) is for, but replacing the main focus 
function 
will fix the issue. 

                focus: function ()
                {
                       // $(this.editorDoc.body).focus();
                        this.editor[0].contentWindow.focus();
                },

I checked in Chrome and Firefox and it works. I don't have an IE here, please 
tell 
me...

Original comment by mapp...@gmail.com on 22 Apr 2010 at 1:36

GoogleCodeExporter commented 9 years ago
Issue 69 has been merged into this issue.

Original comment by akzhan.a...@gmail.com on 6 May 2010 at 1:37

GoogleCodeExporter commented 9 years ago
Thanks, mappam0, for your excellent fix.

Yes, it works in IE8.

Applied to trunk.

Original comment by akzhan.a...@gmail.com on 6 May 2010 at 1:39

GoogleCodeExporter commented 9 years ago
I tried $('#wysiwyg').focus(), but the wysiwyg editor control does not grab 
focus. It 
was written in comment #10 that the fix was applied to the trunk. I tried to 
download 
from trunk, and did not get any code from there, but some license files only. I 
then 
tried to manually apply this fix to my 0.6 version, but even then the widget 
did not 
grab focus. Then I looked in the subversion repository for version 0.7, which 
was 
there, but the fix was not applied. Any help in getting the .focus function to 
work is 
greatly appreciated! Teus.

Original comment by teusjann...@gmail.com on 14 May 2010 at 2:28

GoogleCodeExporter commented 9 years ago
*teusjannette*

Active development of this project has benn moved to GitHub.

http://github.com/akzhan/jwysiwyg

Original comment by akzhan.a...@gmail.com on 14 May 2010 at 2:36

GoogleCodeExporter commented 9 years ago
This also fixes not being able to insert an image before the editor has had 
focus in
Chrome.

Original comment by cellsh...@gmail.com on 15 May 2010 at 10:14