mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
17 lines
460 B
TypeScript
17 lines
460 B
TypeScript
import Setting from '@joplin/lib/models/Setting';
|
|
import createEditor from '../createEditor';
|
|
import createEditorSettings from './createEditorSettings';
|
|
|
|
const createEditorControl = (initialText: string) => {
|
|
const editorSettings = createEditorSettings(Setting.THEME_LIGHT);
|
|
|
|
return createEditor(document.body, {
|
|
initialText,
|
|
settings: editorSettings,
|
|
onEvent: _event => {},
|
|
onLogMessage: _message => {},
|
|
});
|
|
};
|
|
|
|
export default createEditorControl;
|