Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 402310

Summary: Orion editor componet IE 9 compatible
Product: [ECD] Orion Reporter: rahul kumar <r4u818>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: mamacdon
Version: 2.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Orion Editor component IE9 compatability none

Description rahul kumar CLA 2013-03-04 06:38:43 EST
Created attachment 227871 [details]
Orion Editor component IE9 compatability

Hello All,

We are using Orion2.0 editor component to build source code web editor. Editor works fine with Chrome but while opening in IE 9 , it throws java script error inside pluginregistry.js as 

SCRIPT5007: The value of the property 'addEventListener' is null or undefined, not a Function object 
pluginregistry.js, line 249 character 2

and also 

SCRIPT438: Object doesn't support property or method 'some' 
pluginregistry.js, line 373 character 3 inside method function _getPlugin(url) {

Am i using correct version of Orion which is compatible with Internet explorer 9.0 ? Kindly help.

This is how i am initializing plugin registry and installing feature plugin 

serviceRegistry = new mServiceRegistry.ServiceRegistry();
pluginRegistry = new mPluginRegistry.PluginRegistry(serviceRegistry);
pluginRegistry.installPlugin("play/plugins/navigatetosourceplugin.html");
-- more plugins --

Thanks
Rahul
Comment 1 Mark Macdonald CLA 2013-03-04 09:38:16 EST
Hi Rahul,

pluginregistry.js should work in IE9, but you need to ensure that IE loads your web page in "standards mode", not "compatibility mode". You can verify this by opening the Developer Tools (F12) on your page, and checking the Browser Mode menu. More details about standards mode can be found here:

http://msdn.microsoft.com/en-ca/library/gg699338%28v=vs.85%29.aspx
Comment 2 rahul kumar CLA 2013-03-04 12:26:08 EST
Hi Mark,

Thanks a lot for quick guide. <!DOCTYPE html> was missing in my html.

thanks
rahul