Can I make the Tiny MCE toolbar sticky. My client is working on very long articles and would prefer if the toolbar for TinyMCE does not scroll off the screen. It's inconvient to have to scroll all the way to the top of articles to find the toolbar.
I just realized that what is happening is that with TinyMCE, by default the size of the editor screen increases as the text grows longer. If the height of the text exceeds the size of the screen, the toolbar scrolls of the screen.
The default behavior that my client is used to with CKEditor is that the size of the body field is fixed but expandable (1). As long as the user does not increase the size of the body field, the toolbar will remain visible and the writer will scroll up and down through their text within that area (2).
This auto grow behavior in TinyMCE is easily turned off, reflecting the behavior my client is used to CKEditor (screenshot is of TinyMCE using the expected behavior learned from CKEditor). I think the client will be fine with this.
We will turn off the "Autoresize" option in the TinyMCE profile.
Posted2 weeks 6 days ago by Martin Price | System Horizons Ltd (yorkshirepudding) in Meet-Ups and Events
Recent comments
It's not difficult to write JS code in an admin theme (without a module) that would save text from CKEditor to LocalStorage every X minutes and add a button to restore the text from LocalStorage...
Another contrib module came to my mind: Save & Edit.
Of course, that's also not what you had in mind - it saves to the server. But it can be helpful when the network the author's...
... Autosave module that you mentioned, but it saves to the database
I thought, that's what you're after.
I am looking for is to save to localStorage...
Thanks for your prompt reply.
I tried the Autosave module that you mentioned, but it saves to the database, and the behavior I am looking for is to save to localStorage, in other words,...
Hi lloyddunn,
the important thing is: don't mix up CKEditor "autosave" (client side) and node save.
Node save means, that the current form gets validated and saved to the Backdrop...
Comments
What a coincidence, I opened the same question as an issue earlier today, https://github.com/backdrop-contrib/tinymce/issues/177
I just realized that what is happening is that with TinyMCE, by default the size of the editor screen increases as the text grows longer. If the height of the text exceeds the size of the screen, the toolbar scrolls of the screen.
The default behavior that my client is used to with CKEditor is that the size of the body field is fixed but expandable (1). As long as the user does not increase the size of the body field, the toolbar will remain visible and the writer will scroll up and down through their text within that area (2).
This auto grow behavior in TinyMCE is easily turned off, reflecting the behavior my client is used to CKEditor (screenshot is of TinyMCE using the expected behavior learned from CKEditor). I think the client will be fine with this.
We will turn off the "Autoresize" option in the TinyMCE profile.
If you make the editor window full screen (it looks like you have the button) then this is best for long text.