#1668: IsDirty giving false positive with no content.
--------------------------+-------------------------------------------------
Reporter: josh.ritter | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.6.3
Resolution: | Keywords: Confirmed
--------------------------+-------------------------------------------------
Changes (by matti):
* cc: [EMAIL PROTECTED] (added)
* version: FCKeditor 2.5 => FCKeditor 2.6.3
Comment:
IE7 and FF3 handle empty values differently.
With oEditor.setData('',true):
FF StartupValue <br>
IE StartupValue ''
FF EditorDocument.body.innerHTML '<p><br></p>'
IE7 EditorDocument.body.innerHTML '<P></P>'
So oEditor.IsDirty() == true
I hacked something together to fix this in editor/_source/internals/fck.js
replace IsDirty (line 63) with isDirty function in isDirtyChange.js
In no way the fix is complete since I do not know how this appears in
Safari or other supported browsers.
--
Ticket URL: <http://dev.fckeditor.net/ticket/1668#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