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

Exposing code in CodeFlask API #33

Closed
kazzkiq opened this issue Mar 23, 2017 · 2 comments
Closed

Exposing code in CodeFlask API #33

kazzkiq opened this issue Mar 23, 2017 · 2 comments
Milestone

Comments

@kazzkiq
Copy link
Owner

kazzkiq commented Mar 23, 2017

CodeFlask should have a method for exposing the current code inside the editor.

Something like:

const flask = new CodeFlask;
flask.run('#my-editor');

flask.code(); // Retrieve current code in the editor.
@kazzkiq kazzkiq added this to the v0.3.0 milestone Mar 23, 2017
@marcelodarroyo
Copy link

It is very simple:

CodeFlask.prototype.getCode = function () {
return this.textarea.value;
}

@kazzkiq
Copy link
Owner Author

kazzkiq commented May 6, 2018

This is now done in 1.0.

@kazzkiq kazzkiq closed this as completed May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants