Hi. I need to do so the user could select a toolbar between Basic and Full. I have next code:
When page start it's ok. But when I try to choise other toolbar (Basic or Full) it's not worked. Why?
<input type="radio" name="ckeditor_toolbar" id="toolbar_min" checked="checked" value="Basic" onChange="ckeditor('Basic')" /> Basic
<input type="radio" name="ckeditor_toolbar" id="toolbar_max" value="Full" onChange="ckeditor('Full')" /> Full
<textarea name="text" id="task_text"></textarea>$(document).ready(function (){
var toolbar=$('input[name="ckeditor_toolbar"]:checked').val();
CKEDITOR.replace('text',
{
toolbar : toolbar
});
});
function ckeditor(toolbar)
{
CKEDITOR.replace('task_text',
{
toolbar : toolbar
});
}
</script>
When page start it's ok. But when I try to choise other toolbar (Basic or Full) it's not worked. Why?

Re: How to change toolbar?
http://dev.ckeditor.com/ticket/7280