The .updateFrame() method is used internally in CLEditor and it appears to
be working just fine in the latest version. If you go to the demo page,
click the HTML button to switch into HTML mode, add some html tags, then
click the HTML button again to switch back to design view, the
.updateFrame() method gets called and the changes are reflected in the
editor.
Could you provide a sample of the problem you describe so that I can look
into it further?
Chris
Hi David,
You must have been working with version 1.0 and might want to review the What’s New page ( http://premiumsoftware.net/cleditor/docs/WhatsNew.html ) and the Getting Started page ( http://premiumsoftware.net/cleditor/docs/GettingStarted.html ). There have been a ton of changes since then.
For starters, you now create new instances of cleditor using the new jquery cleditor method as follows:
<html>
<head>
<link rel="stylesheet" type="text/css" href="jquery.cleditor.css" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.cleditor.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#input").cleditor();
});
</script>
</head>
<body>
<textarea id="input" name="input"></textarea>
</body>
</html>
The .cleditor() method returns a jquery array of editors. So, to execute the .updateFrame() method, you would do something like this:
var editor = $("#input").cleditor()[0];
editor.updateFrame();
Hope this helps,
Chris