Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use editorjs-columns #49

Open
necromind opened this issue Nov 24, 2022 · 0 comments
Open

Can't use editorjs-columns #49

necromind opened this issue Nov 24, 2022 · 0 comments

Comments

@necromind
Copy link

necromind commented Nov 24, 2022

Can't use addon https://github.com/calumk/editorjs-columns

Saving failed due to the Error TypeError: this.editors.cols[t].save is not a function
    at I.save (editorjs-columns:8:469878)
    at T.<anonymous> ([email protected]:8:42950)
    at l ([email protected]:8:97783)
    at Generator._invoke ([email protected]:8:97536)
    at forEach.t.<computed> [as next] ([email protected]:8:98140)
    at n ([email protected]:8:20378)
    at s ([email protected]:8:20589)
    at [email protected]:8:20648
    at new Promise (<anonymous>)
    at T.<anonymous> ([email protected]:8:20529) %
tools={
    "Header": {
        'class': 'Header',
        'inlineToolbar': True,
        'config': {
            'placeholder': 'Enter a header',
            'levels': [2, 3, 4],
            'defaultLevel': 3,
        },
    },
    'columns': {
        'class': 'editorjsColumns',
        'config': {
            'tools': 'column_tools', # IMPORTANT! ref the column_tools
        }
    },
}

And in custom.js I have:

// first define the tools to be made avaliable in the columns
let column_tools = {
    header: Header,
    alert : Alert,
    paragraph : editorjsParagraphLinebreakable,
    delimiter : Delimiter
}

And plus button disappeared.
Can anyone help please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant