Hi,
I'm trying to make a plugin which prevent back return into fckeditor.
Do you have an idea about how to make that ?
Thanx.
I made this code :
It works, but the only problem is that the Focus() method implies a back to the begin of the text.
Is there's a way to put the cursor at the end ?
I'm trying to make a plugin which prevent back return into fckeditor.
Do you have an idea about how to make that ?
Thanx.
I made this code :
<script type="text/javascript"> function FCKeditor_OnComplete(editorInstance) { editorInstance.Events.AttachEvent( 'OnSelectionChange', FCKAction ); } function FCKAction( editorInstance ) { switch (eval('fckToolBar'+editorInstance.Name)) { case 'toolBarLight': if (editorInstance.IsDirty()) { editorInstance.ResetIsDirty(); editorInstance.SetHTML(editorInstance.GetHTML().replace('<p> </p>','')); editorInstance.Focus(); } break; } return false; } </script>
It works, but the only problem is that the Focus() method implies a back to the begin of the text.
Is there's a way to put the cursor at the end ?