mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
b48cc49e5a
refs https://github.com/TryGhost/Product/issues/3843 If you used relative URLs in the beta editor, when it came to leaving the editor you would get stuck due to an infinite save loop occurring in the background requiring a refresh to get back to a working state. - when saving relative URLs the server will convert them to absolute for consistency and to ensure URLs work in other situations such as emails, RSS, 3rd party editors, etc - although we get different data back from the server we don't overwrite the content in the editor with it as that would cause loss of changes since the save as well as loss of the cursor position - when leaving the editor we compare content from the last save revision with the current editor content to see if we need to save a new revision but if the server data has been modified with relative->absolute URLs then we'd enter an infinite loop because the content would never match - relative->absolute URLs should be the only thing to ever be modified in the underlying data when saving so we can work around the issue by replacing each instance of the site's URL before comparing revision data to current data |
||
---|---|---|
.. | ||
editor | ||
lexical-editor | ||
members | ||
posts | ||
settings | ||
setup | ||
application.js | ||
billing.js | ||
collection.js | ||
collections.js | ||
dashboard.js | ||
designsandbox.js | ||
editor.js | ||
error.js | ||
explore.js | ||
home.js | ||
lexical-editor.js | ||
member.js | ||
members-activity.js | ||
members.js | ||
mentions.js | ||
migrate.js | ||
offer.js | ||
offers.js | ||
pages-loading.js | ||
pages.js | ||
posts-loading.js | ||
posts.js | ||
reset.js | ||
settings-x.js | ||
settings.js | ||
setup.js | ||
signin.js | ||
signup.js | ||
site.js | ||
tag.js | ||
tags.js | ||
websockets.js | ||
whatsnew.js |