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

js plug-in settings are giving wrong irections #490

Open
hadi-f90 opened this issue Jan 15, 2023 · 0 comments
Open

js plug-in settings are giving wrong irections #490

hadi-f90 opened this issue Jan 15, 2023 · 0 comments

Comments

@hadi-f90
Copy link

Problem

Options dictionary for js plug-ins needs a tuple to be passed. passing a dictionary and/or sets results into an error
That is, this setting:

    # To use external plugins,
    # Include them within `css` and `js`.
    'js': {
        '/some_static_folder/summernote-ext-print.js',
        '//somewhere_in_internet/summernote-plugin-name.js',
    },
}

shows this error:

TypeError: can only concatenate tuple (not "set") to tuple

Solution

Therefore it should be changed into:

    # To use external plugins,
    # Include them within `css` and `js`.
    'js': (
        '/some_static_folder/summernote-ext-print.js',
        '//somewhere_in_internet/summernote-plugin-name.js',
    ),
}
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