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

Unsught CKEditorError caused by dragging and dropping custom components: document-selection-wrong-position "stickiness":"toNone"}}} #17749

Open
9727kangcheng opened this issue Jan 13, 2025 · 0 comments
Labels
type:bug This issue reports a buggy (incorrect) behavior.

Comments

@9727kangcheng
Copy link

Reproduction steps

  1. create formcomponent
    editor.model.schema.register(TYPE_FORM_COMPONENT, { allowIn: ["$block", "$inline"], allowWhere: ["$text"], isObject: true, isLimit: true, }); As a prerequisite span style is 'display: inline-table';
  2. const option_style = widgetParams.multi_line ? "display: inline-block; width: 100%; pointer-events:none" : "display: inline; pointer-events:none"; optionElement = viewWriter.createContainerElement("span", { class: "custom-control custom-radio", contenteditable: false, style:${option_style} }); formcomponent childNode optionList

Actual DOM
Image

  1. This problem occurs during violent dragging chunk-5EZXCLHZ.js?v=58a18830:18973 Uncaught CKEditorError: document-selection-wrong-position {"range":{"start":{"root":"main","path":[2,3,1,6,0,2,3],"stickiness":"toNone"},"end":{"root":"main","path":[2,3,1,6,0,2,3],"stickiness":"toNone"}}}
    Image

Current behavior

I only dragged and dropped it

Expected behavior

Drag and drop, then move position

Definition of Done

  • Please leave this field for us. We will fill it during the backlog refinement session.

Relevant debug data

Other details

No response

User agent

chunk-5EZXCLHZ.js?v=58a18830:18973 Uncaught CKEditorError: document-selection-wrong-position {"range":{"start":{"root":"main","path":[2,3,1,6,0,2,3],"stickiness":"toNone"},"end":{"root":"main","path":[2,3,1,6,0,2,3],"stickiness":"toNone"}}}

@9727kangcheng 9727kangcheng added squad:platform Issue to be handled by the Platform team. type:bug This issue reports a buggy (incorrect) behavior. labels Jan 13, 2025
@pomek pomek removed the squad:platform Issue to be handled by the Platform team. label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

2 participants