So I can make it work quite easily:
But it has a price that I don’t think we are willing to pay:
- currently in bio we render “bio_excerpt” and not just “bio_cooked”, which could mean the date might be truncated and also that we are removing HTML:
[1] pry(main)> PrettyText.excerpt("<b>Foo</b>", 5)
=> "Foo"
- Also we are rendering this as text and using
{{text-overflow}}component
So to make it work without going crazy and building some kind of postCooked hook this is not possible without changing:
<div class='bio'>{{text-overflow class="overflow" text=user.bio_excerpt}}</div>
to
<div class='bio'>{{{user.bio_cooked}}}</div>
Which I don’t think we want to do for such a specific edge case, it basically means we are rendering HTML from a user input. Your call, let me know if you want to dig this more or explore other solutions.
Might be safer to just remove toolbar button from about composer ?
