define(function(require, exports, module) {
    main.consumes = [
        "Plugin", "dialog.notification"
    ];
    main.provides = ["readonly"];
    return main;

    function main(options, imports, register) {
        var Plugin = imports.Plugin;
        var notify = imports["dialog.notification"].show;
        
        var shouldShowError = options.shouldShowError;
        
        /***** Initialization *****/
        
        var plugin = new Plugin("Ajax.org", main.consumes);

        var loaded = false;
        function load() {
            if (loaded) return false;
            loaded = true;
            
            if (shouldShowError) {
                notify("<div class='c9-readonly'>You are in Read-Only Mode. "
                    + "Contact the workspace owner to get write permissions."
                    + "</div>", true);
            }
        }
        
        /***** Lifecycle *****/
        
        plugin.on("load", function(){
            load();
        });
        
        /***** Register and define API *****/
        
        plugin.freezePublicAPI({});
        
        register(null, { readonly : plugin });
    }
});
@@ -137,16 +137,44 @@
 eadonly%22
+, %22preferences.experimental%22
 %5D;%0A    r
@@ -1149,16 +1149,29 @@
 null, %7B 
+%0A            
 readonly
@@ -1179,16 +1179,126 @@
 : plugin
+,%0A            %22preferences.experimental%22: %7B%0A                addExperiment: function() %7B%7D%0A            %7D%0A       
  %7D);%0A   

fix readonly mode