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 set workspace? #40

Open
Fantantonio opened this issue Apr 1, 2022 · 0 comments
Open

How to set workspace? #40

Fantantonio opened this issue Apr 1, 2022 · 0 comments

Comments

@Fantantonio
Copy link

Is there a way to set the workspace where to open and store the generated file?

Everytime I run this code (same provided by you):

const el = document.getElementById("text-content");

const stackedit = new Stackedit({
    url: "https://stackedit.io/app"
});

const openWritingEditor = function () {
    stackedit.openFile({
        name: 'Filename',
        content: {
            text: el.value
        }
    });
}

stackedit.on('fileChange', (file) => {
    el.value = file.content.text;
});

A new "Filename" file is generated on the default workspace but I'd like it to appear in another workspace.
I tryied to change the "https://stackedit.io/app" with the workspace url but nothing changes.

Is there a way to do it?
Otherwise it would be a really useful feature to add IMO

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