angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Is it possible to Include a Custom Button on the ToolBar

Open rahulr-ey opened this issue 5 years ago • 6 comments

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

rahulr-ey avatar Jul 28 '20 16:07 rahulr-ey

@kolkov can u help

rahulr-ey avatar Jul 28 '20 16:07 rahulr-ey

@kolkov I need a single button in the toolbar as well, but I don't see any option of it.

alexgurrola avatar Sep 05 '20 00:09 alexgurrola

@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

alexgurrola avatar Sep 05 '20 00:09 alexgurrola

@kolkov the same issue.

embu18 avatar Oct 06 '20 12:10 embu18

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;
}

paddotk avatar Mar 04 '21 12:03 paddotk

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

JorgeMdn avatar May 15 '23 16:05 JorgeMdn