Skip to content

Cannot read property 'scrollIntoView' of undefined #358

Closed
@d0ruk

Description

@d0ruk

Hello,

This seems to be a problem with CKEditor and it made its way into alloyeditor.

Problem was mentioned here and a solution proposed but it received no replies.

Here is how to reproduce it;

  • Create a blank editable and initiate editor.
  • Make the first item you create in the editable an image or a table.
  • Apparently, since there is no element present, there is nothing to scrollIntoview. Table prompt (select rows & columns) doesn't show up. Image input shows up but throws the error in the title after trying to insert.

I think a check needs to be added to see if it is the first element. Skip the scrolling if there is nothing in the editable, yet.

p.s. I solved this problem by initiating the editable with a transparent


at the top.

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