#2186: Allow content to be reset on first focus
--------------------------+-------------------------------------------------
Reporter: IsaacS | Owner:
Type: New Feature | Status: new
Priority: Low | Milestone:
Component: General | Version:
Resolution: | Keywords: Confirmed
--------------------------+-------------------------------------------------
Comment(by arczi):
It is very hard to do that.
This code works in FF and IE but makes an error "Program Stopped Working"
in Safari 3
{{{
var resetOnFirstFocus = true;
var newContent = '';
function myOnFocus( instance )
{
if ( resetOnFirstFocus )
{
resetOnFirstFocus = false ;
instance.SetData( newContent ) ;
}
}
FCK.Events.AttachEvent( 'OnFocus', myOnFocus ) ;
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2186#comment:2>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac