Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Conversation

@vladikoff
Copy link
Contributor

Fixes #623

@vladikoff vladikoff requested a review from Natim February 9, 2018 16:01
@Natim
Copy link
Collaborator

Natim commented Feb 9, 2018

:mindblown:

const content = editor.getData();
if (!ignoreNextLoadEvent && content !== undefined &&
content.replace(/ /g, ' ') !== INITIAL_CONTENT) {
content.replace(/ /g, ' ') !== INITIAL_CONTENT.replace(/\s\s+/g, ' ')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n may add extra spaces and this will not match, watch out for that, we add the .replace

@vladikoff vladikoff merged commit aaad032 into master Feb 9, 2018
@vladikoff vladikoff deleted the init-content-fix branch February 9, 2018 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants