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

Editor title doesn't strip styles on paste #8353

Closed
kevinansfield opened this issue Apr 18, 2017 · 0 comments
Closed

Editor title doesn't strip styles on paste #8353

kevinansfield opened this issue Apr 18, 2017 · 0 comments
Labels
affects:editor Work relating to the Koenig Editor bug [triage] something behaving unexpectedly
Milestone

Comments

@kevinansfield
Copy link
Contributor

Issue Summary

When pasting some text into the title field of the new editor any included styles are carried across.

Example:
screen shot 2017-04-18 at 16 16 39

Expected:
screen shot 2017-04-18 at 16 16 49

Steps to Reproduce

  1. Copy some text that has a distinctive style (I used a title on wikipedia)
  2. Paste it into the title field

Allowing styles to be carried across may cause some confusion as it looks like the styles will be saved but leaving then coming back to the post in the editor will revert to the unstyled version.

Technical details:

@kevinansfield kevinansfield added bug [triage] something behaving unexpectedly affects:editor Work relating to the Koenig Editor labels Apr 18, 2017
@kevinansfield kevinansfield added this to the 1.0.0 Launch milestone Apr 19, 2017
kevinansfield pushed a commit to TryGhost/Admin that referenced this issue Apr 24, 2017
closes TryGhost/Ghost#8353
- if a user pastes or inserts HTML into the title in some other way (modifying the dom, having a plugin mutate the dom, etc) then strip the HTML and insure that the title is always unstyled and plain text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:editor Work relating to the Koenig Editor bug [triage] something behaving unexpectedly
Projects
None yet
Development

No branches or pull requests

1 participant