-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Can't un-blockquote a quote in editor #761
Comments
@bert-bruggeman having a hard time reproducing - here's what I'm seeing: |
The issue only appears on existing entries... |
Ah, yep, got it. Looks like it doesn't recognize when a blockquote is active on load for some reason. |
I'm working on this! |
It seems that the HTML is changed when viewing a Markdown widget in a post that already has a blockquote. When you make a blockquote using the editor the original html that it produces is:
Upon revisiting the post edit page from the dashboard, the html changes to a blockquote with a paragraph as its child instead of a span and thus thinks its a paragraph not a quote.
Not sure how it "re-hydrates" data when its viewed again? Also note that this isn't retrieving from a file, I believe its retrieving the data from localstorage or some other storage (localforage?). Still learning a ton about the ENV so bear with me. Cheers! |
@cwahlfeldt so glad you're digging into this! The storage is actually whatever backend Netlify CMS is using (which currently can only be GitHub for live projects), it loads the entry fresh each time it's opened. From a high level:
I'm betting there's a difference between the Remark AST quote node that we create ourselves and the node that Remark creates when parsing from the Markdown string on load. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was a long time ago, but can @bert-bruggeman or anyone with write access please revise the issue title? |
@erquhart: This issue was opened three years ago and a lot of things have changed in the Netlify CMS. There was two parts in the original issue:
Currently, the first part seems to have been solved. I can select a quoteblock, then click the quoteblock button to toggle it on and off. However, the second parts still remains. Indeed, I've discovered another issue. All the text styles offered by the editor can be divided into three groups:
Selecting either quoteblock, numbered list and bulleted list doesn't highlight the relevant icon in the toolbar. However, selecting the heading works fine. Please see the demo below. Should I create a separate issue for this? |
Hi @bytrangle, that's a good idea. I'll close this one. Can you please open a new one with a reproduction and link to this one? |
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
Selecting an existing blockquote in the editor doesn't highlight the blockquote icon, after clicking on the icon the editor creates a blockquote in the existing blockquote...
- What is the expected behavior?
the blockquote icon should be highlighted when an existing quote is selected, the blockquote should be un-quoted after clicking it..
- Please mention your CMS, node.js, and operating system version.
Cms 0.6, chrome on fedora linux 23
The text was updated successfully, but these errors were encountered: