Search code examples
ckeditor5

How to disable sticky toolbar in classic editor when page is scrolled?


I want to disable sticky toolbar which appears on top of page when page is scrolled. How it can be done ?

enter image description here


Solution

  • The fact that the toolbar appears in the wrong place when the editor is in an overflowed container is a bug that we are aware of. But in this case, I'd recommend you to not use the classic editor at all. If you want to have more control over where the toolbar goes, e.g. the DecoupledEditor (demo) allow controlling the toolbar. This editor type doesn't do anything with the toolbar itself – it just creates it and it's up to you where you're gonna insert it.

    Another option would be implementing your own custom editor, but that'd be necessary only if you wanted to make even more customizations