taoguan / jwysiwyg

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

Patch: Add change event to the options #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This patch allows users to specify a function that will be called when a
key is pressed or the mouse is clicked.  Useful for capturing ctrl-s for
instance.

Example usage:
$("#Editor").wysiwyg({
    change: function(event) {
        if (!(event.which == 115 && event.ctrlKey)) return;

        alert("Ctrl-S was pressed");
        event.preventDefault();
    }
});

Original issue reported on code.google.com by jgeu...@gmail.com on 5 Mar 2009 at 6:39

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,
I need to display this message (Professional language is strictly observed!) 
inside
the editor when loaded for the first time. When the editor is focused, I want to
clear out the "Professional ...." message. How do I do this? Thanks.

Original comment by phamtran...@gmail.com on 10 Jan 2010 at 8:52

GoogleCodeExporter commented 8 years ago

Original comment by akzhan.a...@gmail.com on 2 Apr 2010 at 3:32

GoogleCodeExporter commented 8 years ago
Now we add events to options like this:

http://akzhan.github.com/jwysiwyg/examples/02-full.html

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