How do I position the toolbar from JavaScript

  • 2
  • Question
  • Updated 5 years ago
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.

Photo of Mark Nijhof

Mark Nijhof

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of Haymo Meran

Haymo Meran, Official Rep

  • 334 Posts
  • 26 Reply 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...

Photo of Mark Poston

Mark Poston

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

Rene Kapusta, Employee

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

see also (page end):

<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)