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

Post preview does not respect markup mode #24

Closed
pageer opened this issue Oct 10, 2020 · 1 comment
Closed

Post preview does not respect markup mode #24

pageer opened this issue Oct 10, 2020 · 1 comment
Milestone

Comments

@pageer
Copy link
Owner

pageer commented Oct 10, 2020

When previewing a post, the markup mode specified in the editor does not seem to be respected. It looks like it's just using what's stored for the draft. To reproduce:

  • Create a draft post with LBCode markup mode.
  • Open the draft.
  • Change the markup mode to HTML. Edit the post so that it's valid HTML (using TinyMCE) with multiple paragraphs.
  • Click the preview button

Expected results: The post should display the expected two paragraphs of HTML.
Actual result: The post is all on one line.

@pageer pageer added this to the LnBlog 2.2 milestone Nov 13, 2020
@pageer
Copy link
Owner Author

pageer commented Nov 14, 2020

It looks like this might actually be an issue with the HTML editor. It seems like maybe TinyMCE isn't syncing the HTML content to the textarea when I expect it to. It seems like if you close the preview and do it again, it actually displays as expected.

@pageer pageer closed this as completed in a6f1510 Jun 6, 2021
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

1 participant