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

Refactor paste as JSON logic #460

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Refactor paste as JSON logic #460

merged 2 commits into from
Jul 11, 2024

Conversation

josdejong
Copy link
Owner

See: #454

Removes the need for a special refContents?.querySelector('.jse-editable-div') which has a special method .cancel(). Instead, use a callback function and let EditableValue handle the case of pasting as JSON itself.

There is one more such a special case: the .refresh() method on EditableValue and the refreshEditableDiv util function. We should see if we can refactor that too to not need attaching a special refresh method to the div.

@josdejong josdejong merged commit 2f3c250 into v1 Jul 11, 2024
3 checks passed
@josdejong josdejong deleted the refactor/paste-as-json branch July 11, 2024 10:44
@josdejong josdejong mentioned this pull request Jul 30, 2024
Merged
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant