collaborative-ace
Version:
Binding for collaborative editing support in Ace Editor. Connects JSON CRDT str node to Ace Editor.
12 lines (11 loc) • 476 B
TypeScript
import * as React from 'react';
import { type IAceEditorProps } from 'react-ace';
import type { CollaborativeStr } from 'collaborative-editor';
import type { Ace } from 'ace-builds';
export type Editor = Ace.Editor;
export interface CollaborativeAceProps extends Omit<IAceEditorProps, 'onLoad' | 'value'> {
str: () => CollaborativeStr;
polling?: boolean;
onLoad?: (editor: Editor) => void;
}
export declare const CollaborativeAce: React.FC<CollaborativeAceProps>;