taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

add focus and blur events #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I added the following line 490 to be able to trigger focus and blur events :

            if ( this.options.focus )
            {
                $(this.editorDoc).focus(this.options.focus);
            }
            if ( this.options.blur )
            {
                $(this.editorDoc).blur(this.options.blur);
            }

Original issue reported on code.google.com by thomas.d...@gmail.com on 2 Apr 2009 at 12:56

GoogleCodeExporter commented 8 years ago
Can you explain in just a bit further detail how you got the focus and blur 
events to 
fire?

I tried adding the code at the line you suggest but it doest work.

Any help to get even alert ("foo") when i give focus and blur the textarea.

Thanks

Original comment by paulmos...@gmail.com on 9 Mar 2010 at 4:09

GoogleCodeExporter commented 8 years ago
http://akzhan.github.com/jwysiwyg/examples/02-full.html

Original comment by akzhan.a...@gmail.com on 7 Apr 2010 at 4:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
events: {
      blur : function(e) {
          alert('You have clicked jWysiwyg content!');
      }
    }

Does not work?

Original comment by killerwh...@gmail.com on 23 Feb 2011 at 4:10

GoogleCodeExporter commented 8 years ago
I can also confirm that the blur event does not work, nor does the focus event. 
Not sure where to make the changes to fix it?

Original comment by p...@7ey.es on 29 Sep 2012 at 6:10