Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Focus #20

Closed
GoogleCodeExporter opened this issue Jun 10, 2015 · 13 comments
Closed

Get Focus #20

GoogleCodeExporter opened this issue Jun 10, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Fixed in r17. But still have problems in FF :(

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

Issue 38 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

Comment applied to trunk.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Issue 69 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

*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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant