-
Notifications
You must be signed in to change notification settings - Fork 134
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 elements? #28
Comments
Yes, this should definitely be possible. |
I checked the sources but still unsure how to achieve that. |
Some news about that ? I would like to create my own modules (for toolbar buttons), but I dont see how to do it nicely. |
@chmln cool. Can you please provide usage example? |
@chmln why did you close the issue? Thinking a show HTML button would be very useful and was going to add as a custom element. Also wanted to add icons as a custom element. Any way to currently do this?? |
I dont understand how to set the method that will be called from the customModule. This is my code:
It does not work. Can you explain me how? I want to set the editor in fullscreen. |
This is all I did to create a custom module: Vue.use(wysiwyg, {
customModules: [{
title: 'moduleTitle',
icon: 'ICON', // an SVG will suffice
customAction(utils) {
return [['insertHTML', `<span class="custom-class">${utils.getHTMLOfSelection()}</span>`, true]]
}
}]
}) My only issue right now is having it remove the |
Is it possible to extend functionality to use custom elements?
The text was updated successfully, but these errors were encountered: