You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
I'd really like to use this version of the pagedown editor, but I'm having trouble figuring out how to hook up to the editor's onPreviewRefresh event. The standard pagedown editor has the following example in the wiki:
editor.hooks.chain("onPreviewRefresh", function () {
console.log("the preview has been updated");
});
However, I'm not sure how I'd do something similar using pagedown-bootstrap.
Any help is much appreciated!
The text was updated successfully, but these errors were encountered:
That shows how to access the hooks available for the converter. I was interested in the onPreviewRefresh event/hook, on the editor. I've already made modifications to the pagedownBootstrap initialization that works. I've forked your repo and will probably submit a pull request with those changes when I've got them properly tested.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd really like to use this version of the pagedown editor, but I'm having trouble figuring out how to hook up to the editor's onPreviewRefresh event. The standard pagedown editor has the following example in the wiki:
However, I'm not sure how I'd do something similar using pagedown-bootstrap.
Any help is much appreciated!
The text was updated successfully, but these errors were encountered: