Has anyone successfully parsed the rich editor/trix field from the raw data in the database?
I have an application that has used the trix editor for a while. I need to migrate this data to a new application that also uses the trix editor for the same field but the difference in this new application is that it doesn't allow file uploads in the field like the old application did.
Wondering what the best way would be to rip those files out of the body of that field and upload them properly for the record.
Anyone have any experience here?
Solution:Jump to solution
trix is just json no? So write a migrator, parse the data get the files, download them to a folder structure, then migrate accordingly? Simple laravel console command/
4 Replies
Solution
trix is just json no? So write a migrator, parse the data get the files, download them to a folder structure, then migrate accordingly? Simple laravel console command/
No it looks like this:
You would still need to do what toeknee said, but look into using a php dom parser or php’s DOMDocument class.
Thanks guys.