瀏覽代碼

Use ContentFactory.IOptions rather than IContentFactoryOptions.

Brian E. Granger 8 年之前
父節點
當前提交
dac74fabb3
共有 1 個文件被更改,包括 15 次插入9 次删除
  1. 15 9
      packages/cells/src/inputarea.ts

+ 15 - 9
packages/cells/src/inputarea.ts

@@ -216,7 +216,7 @@ namespace InputArea {
     /**
      * Construct a `ContentFactory`.
      */
-    constructor(options: IContentFactoryOptions = {}) {
+    constructor(options: ContentFactory.IOptions = {}) {
       this._editor = (options.editorFactory || defaultEditorFactory);
     }
 
@@ -238,17 +238,23 @@ namespace InputArea {
   }
 
   /**
-   * Options for the content factory.
+   * A namespace for the content factory.
    */
   export
-  interface IContentFactoryOptions {
+  namespace ContentFactory {
     /**
-     * The editor factory used by the content factory.
-     * 
-     * If this is not passed, a default CodeMirror editor factory
-     * will be used.
-    */
-    editorFactory?: CodeEditor.Factory;
+     * Options for the content factory.
+     */
+    export
+    interface IOptions {
+      /**
+       * The editor factory used by the content factory.
+       * 
+       * If this is not passed, a default CodeMirror editor factory
+       * will be used.
+      */
+      editorFactory?: CodeEditor.Factory;
+    }
   }
 
   /**