lqez / django-summernote

Simply integrate Summernote editor with Django project.
MIT License
1.05k stars 227 forks source link

js plug-in settings are giving wrong irections #490

Open hadi-f90 opened 1 year ago

hadi-f90 commented 1 year ago

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',
    ),
}