I am doing a project in ckeditor.i want to add divs to the textarea of ckeditor and it should be draggable and dropable.I have already added a div and style to div.But jquery click event is not working on the div inside text area.The code i have used is below and it works on focus event. Thanks in advance
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="ckeditor.js"></script>
<script type="text/javascript" src="config.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var editor = CKEDITOR.replace( 'content' );
CKFinder.setupCKEditor( editor, '/ckfinder/' ) ;
var ckeditor = CKEDITOR.instances['content'];
ckeditor.on('focus', fnHandler);
});
function fnHandler(){
alert("Working");
}
</script>
</head>
<body>
<textarea class="ckeditor" name="content" id="content" cols="20" rows="40">
<div id="makeMeDraggable"> </div>
</textarea>
</body>
</html>
Tue, 08/28/2012 - 07:39
#1