View Single Post
Old 05-22-2022, 06:08 PM   #852
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,552
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
@baskerville : a coding question, if you don't mind.

In Plato, what's the best way to extract the class of current paragraph in selection, if present? e.g., given

Code:
<p class="indent">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tempus, quam vel elementum tincidunt, turpis diam elementum est, quis mattis eros erat vel velit. Nullam bibendum, libero ac gravida imperdiet, purus metus cursus tortor, sed pharetra tortor odio sed nibh. Aliquam in congue quam, vel vulputate turpis. 
</p>
I want to get the value "indent"

TIA
Barty is offline   Reply With Quote