Skip to content

setTheme throws error not a function #54

@cdevroe

Description

@cdevroe
const themeMode = localStorage.getItem('theme');
    
    const [editor] = new OverType('#cardEditorOverType', {
        value: md,
        theme: 'solar',
        toolbar: true,
        placeholder: 'Notes...',
        onChange: handleNotesSave
    });

    if ( themeMode ) {
        editor.setTheme('cave');
    }

Results in editor.setTheme is not a function. I must be missing something simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions