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

How to get current notebook content ? #7

Open
stefaneidelloth opened this issue Nov 2, 2021 · 1 comment
Open

How to get current notebook content ? #7

stefaneidelloth opened this issue Nov 2, 2021 · 1 comment

Comments

@stefaneidelloth
Copy link

stefaneidelloth commented Nov 2, 2021

Lets say I created an instance of StarboardEmbed with

const el = new StarboardEmbed({
        notebookContent: "# %% [javascript]\n3+5\n",
        src: "https://cdn.starboard.gg/npm/starboard-notebook@0.13.2/dist/index.html"
    });

How can I get the current notebook text?

I would expect something like

let content = el.value

or

let content = el.sendMessage({type ="GET_CONTENT"})

=> How does it actually work?

@stefaneidelloth
Copy link
Author

As a workaround its possible to

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

1 participant