How can I make a block read only?

837 views
Skip to first unread message

Zubair Quraishi

unread,
Oct 17, 2016, 4:40:38 AM10/17/16
to Blockly
I am trying to have a mode in my application where some blocks can be edited and the rest of the blocks are read only. Is this possible?

Blake

unread,
Oct 17, 2016, 8:20:49 AM10/17/16
to Blockly

On Mon, Oct 17, 2016 at 4:40 AM, Zubair Quraishi <zub...@gmail.com> wrote:
I am trying to have a mode in my application where some blocks can be edited and the rest of the blocks are read only. Is this possible?

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zubair Quraishi

unread,
Oct 17, 2016, 2:37:45 PM10/17/16
to Blockly
This is just what I needed, thanks Blake! :)


On Monday, October 17, 2016 at 2:20:49 PM UTC+2, Blake Bourque wrote:
On Mon, Oct 17, 2016 at 4:40 AM, Zubair Quraishi <zub...@gmail.com> wrote:
I am trying to have a mode in my application where some blocks can be edited and the rest of the blocks are read only. Is this possible?

--
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.

Zubair Quraishi

unread,
Oct 21, 2016, 6:52:52 AM10/21/16
to Blockly
Setting a block to 'Editable' still not working. I updated the github issue here:


Could it be that blockly_compressed.js needs to be updated?

Zubair Quraishi

unread,
Oct 24, 2016, 6:49:21 AM10/24/16
to Blockly
I guess there must be a way t build blockly compressed from source? If I can be pointed to that then I can make the fix myself and then it can be pulled back into the main blockly branch


On Monday, October 17, 2016 at 2:20:49 PM UTC+2, Blake Bourque wrote:
On Mon, Oct 17, 2016 at 4:40 AM, Zubair Quraishi <zub...@gmail.com> wrote:
I am trying to have a mode in my application where some blocks can be edited and the rest of the blocks are read only. Is this possible?

--
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.

Rachel Fenichel

unread,
Oct 24, 2016, 12:59:00 PM10/24/16
to Blockly
You can rebuild from source by running build.py:
>python build.py

I'll update the compressed files on master today.

Zubair Quraishi

unread,
Oct 25, 2016, 12:28:19 AM10/25/16
to Blockly
Ok, thanks Rachel!
Reply all
Reply to author
Forward
0 new messages