Skip to content

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

Open
vvidday wants to merge 2 commits intoDashibase:mainfrom
vvidday:fix/keep-tags2
Open

fix: make bold and italic tags persist after block conversion (text type)#46
vvidday wants to merge 2 commits intoDashibase:mainfrom
vvidday:fix/keep-tags2

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