OK, I have a unique question and it has not been one I have had any luck finding on the web. I have found several partial suggestions but in most cases I have confirmed that they are not functional in a way to present a good user experience no matter what the users do (resize, etc) the display.
What I am trying to do is offer a pure WYSIWYG editor to help compensate for the weak editor that is part of Adobe Flex. Most of the time the built in one from Flex will do the job but every now and again we will have a need to do some advanced management such as image handling, etc. In comes FCKEditor.
Now, the first thing I did, to prove my concept was to create the page I was looking for with only HTML, DHTML and Javascript. I was able to see with no effort at all that I could hide or display the FCKEditor at will. So far so good.
<script type="text/javascript" src="fckeditor/fckeditor.js"></script> <input type="button" value="Show FCK" onClick="javascript:showWysiwyg()"> <input type="button" value="Hide FCK" onClick="javascript:hideWysiwyg()"> <div id="wysiwyg" style="z-index:2; visibility: hidden; background-color:white; position:absolute; left: 20px; right: 20px; top: 100px; border-style: solid; border-width: thin;"> <script type="text/javascript"> var oFCKeditor = new FCKeditor('FCKeditor1'); oFCKeditor.BasePath = "fckeditor/"; oFCKeditor.Create(); function showWysiwyg() { document.getElementById("wysiwyg").style.visibility = 'visible'; } function hideWysiwyg() { document.getElementById("wysiwyg").style.visibility = "hidden"; } </script> </div>
Re: Adobe Flex, FCKEditor and DHTML
OK, so I am guessing no one else has experienced this issue or have a need to work in a like situation. Gotta love to be the first to try something . OK, here is what I know so far. I have it narrowed down to a local host issue with IE6,7,8. FF works fine now on local host. If I move the code to a website all browsers are working correctly. So it is something to do with how IE is seeing the files being used in a non-website view.
Should anyone have any ideas I am all ears but so far everything I have searched on over the past many days/weeks have proved useless to my situation.
Here is the list of Javascript errors that are only appearing in IE while used in my local computer via the code above in Flex. This same code on a server will generate no errors. Firefox has no issue viewing the code locally or remotely.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)
Timestamp: Tue, 21 Jul 2009 14:47:09 UTC
Message: Object doesn't support this property or method
Line: 42
Char: 3
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: 'FCKBrowserInfo' is undefined
Line: 125
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: Object expected
Line: 164
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: 'FCKTools' is undefined
Line: 176
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: Object expected
Line: 195
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: 'FCKLang' is undefined
Line: 203
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: 'FCKBrowserInfo' is undefined
Line: 270
Char: 1
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Message: Object expected
Line: 210
Char: 2
Code: 0
URI: file:///C:/FlexProjects/fcktest/bin-debug/fckeditor/editor/fckeditor.html?InstanceName=message&Toolbar=Basic
Re: Adobe Flex, FCKEditor and DHTML
Here is my current index.html template from within Flex.
Re: Adobe Flex, FCKEditor and DHTML
Re: Adobe Flex, FCKEditor and DHTML