+ // Data storage for SCAYT control, based on editor instances\r
+ controlInfo : {},\r
+ setControlInfo : function( editor, o )\r
+ {\r
+ if ( editor && editor.name && typeof ( this.controlInfo[ editor.name ] ) != 'object' )\r
+ this.controlInfo[ editor.name ] = {};\r
+\r
+ for ( var infoOpt in o )\r
+ this.controlInfo[ editor.name ][ infoOpt ] = o[ infoOpt ];\r
+ },\r
+ isControlRestored : function ( editor )\r
+ {\r
+ if ( editor &&\r
+ editor.name &&\r
+ this.controlInfo[ editor.name ] )\r
+ {\r
+ return this.controlInfo[ editor.name ].restored ;\r
+ }\r
+ return false;\r
+ },\r
+ markControlRestore : function ( editor )\r
+ {\r
+ this.setControlInfo( editor,{ restored:true } );\r
+ },\r
+ setControlId: function (editor, id)\r
+ {\r
+ this.setControlInfo( editor,{ id:id } );\r
+ },\r
+ getControlId: function (editor)\r
+ {\r
+ if ( editor &&\r
+ editor.name &&\r
+ this.controlInfo[ editor.name ] &&\r
+ this.controlInfo[ editor.name ].id )\r
+ {\r
+ return this.controlInfo[ editor.name ].id;\r
+ }\r
+ return null;\r
+ },\r
+ setPaused: function ( editor , bool )\r
+ {\r
+ this.setControlInfo( editor,{ paused:bool } );\r
+ },\r
+ isPaused: function (editor)\r
+ {\r
+ if ( editor &&\r
+ editor.name &&\r
+ this.controlInfo[editor.name] )\r
+ {\r
+ return this.controlInfo[editor.name].paused ;\r
+ }\r
+ return undefined;\r
+ },\r