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

Expose API to allow bulding on top of the plugin #147

Open
yonjah opened this issue Nov 9, 2018 · 0 comments
Open

Expose API to allow bulding on top of the plugin #147

yonjah opened this issue Nov 9, 2018 · 0 comments

Comments

@yonjah
Copy link

yonjah commented Nov 9, 2018

It would be great of some of the api was exposed so we could programmatically call methods and run commands.
I mostly think of a command runner similar to what toolbar click handler is doing only with a generic command and value

runCommand(command, value) {
            self.restoreSelection(  );
            editor.focus();
            self.execCommand( command, value, editor, options, toolbarBtnSelector );
            self.saveSelection( );
}

This will allow more flexibility and custom ui when calling commands (like poping up a dialog to enter url)

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