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

Custom functions #28

Open
kokujin opened this issue Dec 4, 2017 · 1 comment
Open

Custom functions #28

kokujin opened this issue Dec 4, 2017 · 1 comment

Comments

@kokujin
Copy link

kokujin commented Dec 4, 2017

Can you post example code on how to create attach custom events to custom buttons? We could then maybe implement some of the feature requests in the issues.

@steelydylan
Copy link
Contributor

steelydylan commented Dec 4, 2017

Hi @kokujin
you can attach custom functions like below.
but there is no way to add custom events on them

editor.registerButton({
  label: 'custom',
  group: 'mark',
  action: 'extra',
  onClick: (editor) => {
      // you can write codes here.
  }   
});

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

2 participants