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

fix: make bold and italic tags persist after block conversion (text type) #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vvidday
Copy link
Contributor

@vvidday vvidday commented Aug 5, 2022

Currently, converting between text type blocks (text <-> quote / text->text / quote->quote) results in loss of bold and italic tags

  • Modified Lotion.vue::setBlockType to use html content instead of text content when target block is text/quote (solves conversion with no search)
  • Modified Block.vue::clearSearch to take into account html content - now if type of block before conversion is text/quote, it will store the html content in addition to the text content, and if the type of block after conversion is text/quote, it will use the stored html content. (solves conversion via search)
video

keeptags-before
keeptags-after

Tags are still lost when converting to heading types, could potentially find a workaround with the current implementation but @holazz's refactor in #39 will potentially make it much easier (I think we would be able to use the same logic as text blocks)

redo of #42 with correct commit history

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

Successfully merging this pull request may close these issues.

1 participant