angular-editor
angular-editor copied to clipboard
Is it possible to Include a Custom Button on the ToolBar
My requirement is that I need a custom button on the toolbar, while clicking on that button a dropdown list should come with a particular set of values that I need to use as placeholders in the body during the html generation
@kolkov can u help
@kolkov I need a single button in the toolbar as well, but I don't see any option of it.
@rahulr-ey I found an older issue which indicates it may be a while before we have custom button functionality. https://github.com/kolkov/angular-editor/issues/62
@kolkov the same issue.
Seems like a very specific use-case thing. I'd suggest to manually add a button positioned over the editor.
<div class="wrapper">
<button class="my-custom-button">Do something</button>
<angular-editor></angular-editor>
</div>
.wrapper {
position: relative;
}
.my-custom-button {
position: absolute;
top: 10px;
right: 10px;
z-index: 2;
}
angular-editor {
position: relative;
z-index: 1;
}
Can you check my solution to add HTMLString with custom buttom in the last position cursor https://github.com/kolkov/angular-editor/issues/104#issuecomment-1548212596