Skip to content

HTML Editor - "acceptImage: false" is not working on PASTE #131

Open
@gtasker10

Description

The property options.acceptImages is not checked in two places before calling addImage() in the code for the HTML Editor:

  • extractImageFromHtml()
  • addFile()

I would propose that the addImage() function be modified to check the options.acceptImages at the start of the function:

  obj.addImage = function(src, asSnippet) {
        if (! obj.options.acceptImages) {
            return;
        }

Might be a good idea in addPdf() to add a similar check of options.acceptFiles at the top of the functions.

Not sure if adding a similar check to addFile() would be a good idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions