How do I position the toolbar from JavaScript

  • Question
  • Updated 3 years ago
Hi,
Is it possible to place the toolbar on a fixed place relative to the input field that is being edited? Then when visible it would be pinned down so scrolling would keep it on the same place. I guess I am just asking if instead of using the cookie to get the position values I want to provide them from JavaScript myself. I am asking so it could be nicely integrated with a design.

-Mark
Photo of Mark Nijhof

Mark Nijhof

  • 1 Post
  • 0 Likes

Posted 4 years ago

  • 2
Photo of Haymo Meran

Haymo Meran, Official Rep

  • 334 Posts
  • 26 Likes
Hi Mark,

right now we don’t have a possibility. A lot of requests about this issue. I think we should think about some improvements for the floating menu...

Thanks.
haymo
Photo of Mark Poston

Mark Poston

  • 4 Posts
  • 0 Likes
Has this been implemented now?
Mark
Photo of Rene Kapusta

Rene Kapusta, Employee

  • 468 Posts
  • 26 Likes
In the dev branch this feature is available.

see also (page end): http://aloha-editor.org/builds/develo...



<script type="text/javascript">
Aloha.settings.floatingmenu = {
behaviour: 'append', // attach FM to the position of a HTML element
element: 'my-html-element-id', // HTML DOM ID of the element
pin: false, // boolean if set to true the FM will be pinned (and scroll with the window)
};
</script>