index.php
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#getnumber').click(function(){
var id = $('#number').val();
$.get("load.php", { id: id },
function(data)
{
$('#content').html(data);
$('.rich').ckeditor();
}
);
});
});
</script>
</head>
<body>
<div id="input">
<input type="text" id="number" />
<button id="getnumber" type="submit">Get Number</button>
</div>
<div id="content">
</div>
</body>
</html>
load.php
<p> <textarea class="rich" id="one" rows="3" cols="80"><?php echo $_GET['id']; ?></textarea> </p>

Re: Jquery .get() and .ckeditor()
Re: Jquery .get() and .ckeditor()
Any CKEditor guru's around?
Re: Jquery .get() and .ckeditor()
http://stackoverflow.com/questions/1794 ... ady-exists
$editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } }Re: Jquery .get() and .ckeditor()
http://docs.cksource.com/ckeditor_api/s ... ml#destroy
Re: Jquery .get() and .ckeditor()