Ghost/ghost/admin/lib
Simon Backx ed1ae60bec
Fixed pasting links in koenig basic html input (#16584)
refs https://github.com/TryGhost/Team/issues/2680

When selecting a portion of text in KoenigBasicHtmlInput (caption input
for images, newsletter footer text input, new signup notice), and then
pasting a link, some funky things happen:
- Part of the text disappears
- The wrong part of the text is linked

The cause of this is that `KoenigBasicHtmlInput` deletes the selected
text range when pasting, even when pasting a link. so moving that part
below the code that detected a valid link, fixes the issue.

This also adds an option to not close an old style modal when pressing
the enter key (e.g. pressing enter when entering a link causes the modal
to close).
2023-04-07 11:19:37 +02:00
..
asset-delivery Removed icon files from packaged tarball 2022-08-31 18:06:42 +01:00
ember-power-calendar-moment Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
ember-power-calendar-utils Fixed linter error 2022-09-24 13:36:47 +02:00
koenig-editor Fixed pasting links in koenig basic html input (#16584) 2023-04-07 11:19:37 +02:00