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

I'm looking for some method to invoke render by phantomjs #19

Open
FavorMylikes opened this issue Sep 11, 2018 · 0 comments
Open

I'm looking for some method to invoke render by phantomjs #19

FavorMylikes opened this issue Sep 11, 2018 · 0 comments

Comments

@FavorMylikes
Copy link

var system = require('system');
var args = system.args;
injected = phantom.injectJs('stackedit.min.js');
var stackedit = new Stackedit();
var content = args[1];
stackedit.openFile({
    name: 'Filename',
    content: { text: content }
}, true /* silent mode */);
stackedit.on('fileChange', function(file) {
    console.log(file.content.html);
});

This is my main code.
But fileChange seems never be called.
Any suggestion?

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