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

insertHtml inserts only text from given element #3042

Open
engineering-this opened this issue Apr 9, 2019 · 1 comment
Open

insertHtml inserts only text from given element #3042

engineering-this opened this issue Apr 9, 2019 · 1 comment
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:bug A bug.

Comments

@engineering-this
Copy link
Contributor

engineering-this commented Apr 9, 2019

Type of report

Bug

Provide detailed reproduction steps (if any)

Extracted from #2987 (review)

  1. Open sample.
  2. Select word in paragraph.
  3. Open console, and paste:
    CKEDITOR.instances.editor.insertHtml( '<div>foo</div>' )

Expected result

An actual div element is inserted.

Actual result

Only text foo is inserted

Other details

Following will work as expected inserting two nested divs:
CKEDITOR.instances.editor.insertHtml( '<div><div>foo<div></div>' )

  • Browser: Any
  • OS: Any
  • CKEditor version: Found in 4.11.4
  • Installed CKEditor plugins: …
@engineering-this engineering-this added type:bug A bug. status:confirmed An issue confirmed by the development team. core The issue is caused by the editor core code. labels Apr 9, 2019
@engineering-this
Copy link
Contributor Author

Related #2783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

1 participant