comments with html

26 views
Skip to first unread message

Koen Van Wijk

unread,
May 4, 2021, 9:36:54 AM5/4/21
to Blockly
Hello!

Do anyone knows an example of creating comments that contain more than only text? Maybe a small visual html editor that could be used to even add images, tables, formulas?

Regards,
Koen

Beka Westberg

unread,
May 4, 2021, 6:00:50 PM5/4/21
to blo...@googlegroups.com
Hello Koen,

I'm not aware of any, but that sounds super cool! I would love to be able to draw sketches on/in the blockly workspace (as well as in my text-based code, but that's just dreaming hehe).

One thing that comes to mind which is similar is this is some people have modified block tooltips to allow them to show images/gifs. But that's more of a docs thing than a comment thing hehe.

Also I'll say that if you want to do this, it's probably possible, but not without forking/monkey patching blockly. The icons (mutators, comments and warnings) don't have any API. There are actually hard-coded properties associated with them haha. But hopefully in the future that will be better =)

I'd love to hear more of your thoughts on this as well!

Best wishes,
Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/70bd737b-fe7e-4d9e-9068-debb1e58b039n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages