I have the script set up like so:
Is there a way to have the fckEditor.value go away when a user clicks inside the textbox? That way they don't have to erase all the wording that's already there.....
fckEditor = createObject("component", "/fckeditor2/fckeditor"); fckEditor.instanceName = "Comments"; fckEditor.value = 'If you have any comments, please enter them here.'; fckEditor.basePath = "/fckeditor/"; fckEditor.width = "95%"; fckEditor.height = 200; fckEditor.ToolbarSet ='Basic';
Is there a way to have the fckEditor.value go away when a user clicks inside the textbox? That way they don't have to erase all the wording that's already there.....
Re: Clear fckEditor.value automatically??
Sure, there's always some solution, take a look at our wiki:
http://wiki.fckeditor.net/Developer's_G ... script_API
with javascript API you have access to FCKeditor textarea, you can erase it by calling SetHTML with empty string.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Clear fckEditor.value automatically??
Re: Clear fckEditor.value automatically??
function resetEditor(id) {
FCKeditorAPI.GetInstance(id).SetData('');
}
</script>