bootstrap-markdown icon indicating copy to clipboard operation
bootstrap-markdown copied to clipboard

Bottom control support

Open AmitJoki opened this issue 11 years ago • 5 comments
trafficstars

Can you please provide the option of placing the controls neither top or bottom ?

AmitJoki avatar Nov 30 '13 08:11 AmitJoki

i believe you could do this by changing styles.

szelga avatar Dec 08 '14 07:12 szelga

No you can't, the .md-header.btn-toolbar needs to come after the textarea.md-input if you want the placement at the bottom.

This needs js implementation. @toopay I can send a PR if you want this. :)

lodev09 avatar Dec 16 '14 05:12 lodev09

something like this:

.my-selector .md-editor {
  position: relative;
}

.my-selector .md-header {
  position: absolute;
  bottom: 0;
}

szelga avatar Dec 16 '14 07:12 szelga

doing it via js is much less complicated. But if we do it in css, you need to consider the fullscreen styles, borders, etc. maybe adding an extension to the .md-header in less will work.

I think it will result to style conflicts but feel free to send a pr.

lodev09 avatar Dec 16 '14 19:12 lodev09

well, if you want to provide bottom controls out-of-the-box, js is better than css. in my previous comments, i meant that you can make controls appear on bottom right now, without changing bootstrap-markdown's code.

szelga avatar Dec 17 '14 03:12 szelga