<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test - CKEditor</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
<script type="text/javascript" src="../tools/ckeditor-3.1/ckeditor.js"></script>
</head>
<body>
<div class="customtoolbar">
<textarea id="customck" name="ck1" cols="20" rows="10">We have a custom toolbar and the minimize toolbar doesn't work.</textarea>
</div>
<div class="customtoolbar">
<textarea id="basicck" name="ck1" cols="20" rows="10">We have the basic toolbar and the minimize toolbar doesn't work.</textarea>
</div>
<div class="defaulttoolbar">
<textarea id="defaultck" name="ck2" cols="20" rows="10">We have the default toolbar and the minimize toolbar works.</textarea>
</div>
<script type="text/javascript">
var customEditor = CKEDITOR.replace( 'customck',
{
toolbar : [ ['Bold', 'Italic', 'Underline', '-', 'Font', 'FontSize', '-', 'Link', '-', 'Save'] ]
});
var customEditor = CKEDITOR.replace( 'basicck',
{
toolbar : 'Basic'
});
var defaultEditor = CKEDITOR.replace( 'defaultck');
</script>
</body>
</html>
Fri, 01/15/2010 - 15:47
#1
