Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional API function and configuration option #16

Open
grintor opened this issue Apr 3, 2020 · 2 comments
Open

Additional API function and configuration option #16

grintor opened this issue Apr 3, 2020 · 2 comments

Comments

@grintor
Copy link

grintor commented Apr 3, 2020

First of all. I want to say that What you have done here is simply amazing. I have been digging in deeply into testing this and trying to understand how all the pieces work together and I can tell this has been a LOT of work. Bravo. I have been using you alpha release, and I have to say it feels like more than an alpha, it seems very stable.

I do have some things I wish for tough. For one, I know that Skulpt supports actually executing the python code and also returning exceptions. It would be really cool to have a check-code api call. At least checking for syntax errors would be nice.

Also, I don't see a way to dictate the toolbox. I see that one gets defined at BlockMirrorBlockEditor.prototype.makeToolbox() but that would be a nice configuration option to have. It would also be really neat to be able to manipulate the toolbox through the API too. Just being able to pass it XML at will and change the tools would be very useful to me.

I also noticed that master is a few commits ahead of release, any chance you will be releasing a beta soon?

Thank you for all your hard work. I really love what you have done here.

Chris

@acbart
Copy link
Collaborator

acbart commented Apr 3, 2020

Wow, didn't know anyone was using this! I'd love to hear more about your use case. I may not have many spare cycles to work on this since its the semester and the COVID madness, but I'll see where things are in the next few weeks.

I could add some functionality to connect with Skulpt some more. Do you have a dream API in mind? What would you like to be able to do?

The commit I just made most recently has my latest work on the Toolbar API. I believe this allows you to specify the toolbar by writing Python code. Sorry it's not better documented, and I don't quite remember offhand whether it exposes a really easy way to add new toolboxes. But let me know if you're having trouble and I'll see what I can do with it.

New Toolbar setup: https://github.com/blockpy-edu/BlockMirror/blob/master/src/toolbars.js

How it works with main BlockMirror:

BlockMirrorBlockEditor.prototype.makeToolbox = function () {

We should make a new release - I'll try to put that in my todo list soon.

@grintor
Copy link
Author

grintor commented Apr 7, 2020 via email

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

No branches or pull requests

2 participants