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

Does not save paragraph is you don't add/edit content #141

Open
stpaultim opened this issue Jul 29, 2022 · 2 comments
Open

Does not save paragraph is you don't add/edit content #141

stpaultim opened this issue Jul 29, 2022 · 2 comments

Comments

@stpaultim
Copy link
Member

stpaultim commented Jul 29, 2022

This feature is a bug for me right now.

FEATURE:

If you create a paragraph but do not edit the content and then you save the page, the empty paragraph is not saved. In theory, this makes perfect sense.

BUG:

I created a paragraph with a Markup field. In the markup field, I include a HR. I want an option for site editors to use the paragraph to place a Horizontal Rule between two other paragraphs. I've styled the HR appropriately and used the Markup field, because the content of this paragraph should not be edited. The only task for the editor is to place the HR paragraph in the correct place, there is nothing for them to edit.

However, when I save the page, this new paragraph does not get saved. I assume, because I have not added or edited any content.


It seems to me that having a paragraph with fixed message or image that can't be edited would be a very useful use case. Is there a better way to do this, or is this a bug that we should fix.

@laryn
Copy link
Member

laryn commented Aug 10, 2022

@stpaultim I have not used the Markup field module. Is this meant to insert a HR on the author/node-edit form, or on the front end display?

@stpaultim
Copy link
Member Author

@laryn For this use case, I wanted a way to put an HR between two paragraphs. My thought was to create a paragraph for that sole purpose. This would have put the HR on the front end display of the node, between two paragraphs.

I want the site editor to have this capacity. The Markup field should work for this purpose, except for the problem I mentioned. I'm totally open to the idea that there is a better way to accomplish the same thing, but I'm not sure what it is yet.

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

No branches or pull requests

2 participants