Skip to content

How to set workspace? #40

Open
Open

Description

@Fantantonio

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions