Thank you for your attention. In the last post I fixed, I was getting this error.
Interesting. Does the .json for that particular post have both a mobiledoc and a lexical entry? Or does it look ok in the json but clearly isnāt after importing? Iām wondering if this is problem with the import code or the export code.
I have the json saved. If you want to download it to study I can make it available.
Ahha. I just managed to reproduce it. Will strip it down to the simplest possible repro and then file a bug.
How nice that you were able to reproduce it
Well, itād be nicer if there was no bug, but itās a whole lot easier to get a reproducible bug fixed.
Update: I donāt think it matters which editor you have active when you try to import. Does that match your experience? Itās that lexical posts donāt import correctly (and are bugged in a way that they cannot be edited), but editor setting at the time of import doesnāt appear to matter.
Iām quite enticed to give it a try, but I think Iāll wait about a year before starting to use this editor. The current editor is already a decade ahead of WordPress, so I donāt see a compelling reason to experiment with something in beta that carries the risk of causing issues or disruptions.
Thanks, @Cathy_Sarisky, for raising this bug. I wanted to just chime in that I unfortunately encountered this problem tonight as well.
And yes, to your question: it didnāt matter which editor I had toggled at the time of import. If the post was initially written in lexical
, then it simply wonāt import correctly. If it was initially written in mobiledoc
, then everything works fine.
My specific workflow is I actually create posts on my localmachine, make sure they look like I expect (especially because Iāll sometimes tweak the theme too) and then when Iām happy Iāll export from my local machine and import that .json
onto my Ghost(Pro) instance (and a new corresponding theme, if necessary). (Also, on my Ghost(Pro) instance, I always do delete everything before importing the new .json
.)
The workaround right now is to just make sure all of oneās posts and pages are written in mobiledoc
, I guess? Like you said in your GitHub issue, the actual json
Iām importing is correctly formatted and mobiledoc
is indeed set to null:
The problem is something in the importer
itself.
Iād already written about half of my posts and pages in lexical
but Iāll go back now and manually convert them all into mobiledoc
. Am hoping this bug will get fixed soon though! As itās definitely a dealbreaker that makes
lexical
not possible in my current workflow.
Edit:
Iām adding the actual error message in text so SEO can actually find this post:
Validation error, cannot edit post. Posts can have either a mobiledoc or a lexical property, never both. Both the mobiledoc and lexical properties are set, one must be null
How can I activate the stickers feature? I just purchased the license, the integration was activated, but the stickers option is not available in the editing tools.
In the photo editor, the sticker option is on the left (1). Once selected, upload your sticker image (2).
I have the self-hosted version of Ghost, and I uploaded the files listed on the integrations page. Still no sticker option appears, or is there an extra step required?
Ghost version: 5.53.4
Node version: 16.13.0
SO: Ubuntu 20.04
May I ask how you convert lexical
to mobiledoc
? I have the same issue right now.
@r002 and @Jun_Mao , the bug was closed last week, so if it isnāt fixed now, Iād check again after the next release!
@Jun_Mao With a lot of elbow grease! Iād literally gone through manually post by post, selected all text, copied, and pasted into a new post (after Iād disabled the
lexical
editor in the labs settings
).
According to @Cathy_Sarisky though, the bug appears to be fixed now! So I think itās no longer necessary to jump through all of the hoops I had. (Iād just been on a deadline at the time and needed to get all of the posts exported from my localhost and imported into my Ghost(Pro) PROD instance, which is why Iād brute-forced it.)
In any case, thanks for the update, Cathy!
Cathy can you give me any docs on doing this? Would this require theme edit?
Thanks,
Clayton
Since I said above that I wasnāt sure what you meant when you said you wanted popups (in the Ghost editor?), I donāt know what exactly youāre asking for docs onā¦
Sorry, learning how to build pop ups in Ghost. Is this a 3rd party solution ?
Hi!
I thought Iād spend a few moments on Google and found the following two options
Code Snippet:- Simple tips for creating ghost notification popups
Third party option which is free to 5,000 page views/month, then $390 annual for 100,000 views/month and there are more higher tiers. It works using an embed code (you design the pop up at the providerās url and the code you copy from there and inject in your site calls the info from the provider url):-- Ghost CMS Popup Builder Tool for Free | Popupsmart
These two were so easy to find, thereās likely lots of options out there. I spotted, but did not review, several YT vid tutorials on the topic.
Good luck
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.