⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (586 Bytes)
RE: keyWentDown and keyPressed events do not propagate fr...
ยป test.html
Laszlo Marak
, 08/23/2015 06:18 PM
<!DOCTYPE html>
<html>
<head>
<script
type=
"text/javascript"
src=
"resources/tinymce/tinymce.min.js"
></script>
<script
type=
"text/javascript"
>
tinymce
.
init
({
selector
:
"
#mytextarea
"
,
setup
:
function
(
ed
)
{
ed
.
onKeyDown
.
add
(
myFunction
);
}
});
function
myFunction
(
ed
,
e
)
{
alert
(
"
You pressed a key inside the input field
"
+
e
.
keyCode
);
}
</script>
</head>
<body>
<h1>
TinyMCE Getting Started Guide
</h1>
<form
method=
"post"
>
<textarea
id=
"mytextarea"
></textarea>
</form>
</body>
</html>
(1-1/1)
Loading...