Skip to content

Make RichTextDocument and child nodes conform to Codable and NSCoding #281

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

Conversation

manmal
Copy link
Contributor

@manmal manmal commented Jul 23, 2019

This PR makes RichTextDocument conform to Codable and NSCoding such that RichTextDocuments can be stored directly in Core Data by adding a field of type ValueTransformer in the model, and adding a variable of type RichTextDocument in the model's Swift file.

An extensive test case is added that asserts that encoding and decoding works recursively.

@manmal
Copy link
Contributor Author

manmal commented Jul 23, 2019

Closing and reopening PR to rerun Travis build - it all works on my machine, so worth a shot

@manmal manmal closed this Jul 23, 2019
@manmal manmal reopened this Jul 23, 2019
@Khaledgarbaya Khaledgarbaya merged commit 81bec4f into contentful:master Jul 25, 2019
@manmal manmal deleted the manmal-feature/make_RichTextDocument_persistable branch August 9, 2019 14:59
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.

2 participants