Davyc Posted March 24, 2018 Share Posted March 24, 2018 I was wondering if the menu bar of the text editor could be fixed when scrolling so that it is always in view? It can be cumbersome when editing long documents and you have to keep scrolling to the top to edit items such as Bold or Italics, etc; this is especially, but not exclusively, noticeable in the ACP when making changes to items such as Privacy Policy, Guidelines etc. It would be great if this could be achieved and speed up writing and editing long documents. ☺️ Link to comment Share on other sites More sharing options...
Nathan Explosion Posted March 24, 2018 Share Posted March 24, 2018 Add this to your custom.css .cke_top{ position:sticky; top:0; } Link to comment Share on other sites More sharing options...
beeurd Posted March 24, 2018 Share Posted March 24, 2018 I didn't even know I need this. Game changer! Link to comment Share on other sites More sharing options...
Davyc Posted March 24, 2018 Author Share Posted March 24, 2018 6 hours ago, Nathan Explosion said: Add this to your custom.css @Nathan Explosion many thanks for the code, but it doesn't work. I added the code to the original theme custom.css and also to the purchased theme and it doesn't work. By default the text runs under the editor bar, but once the whole page begins to scroll because of the length of the document the editor disappears. Thanks again, I appreciate your response. ? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted March 25, 2018 Share Posted March 25, 2018 Well, that post I made up there has me confused - I don't remember posting it, and I've been in bed with Flu since Friday. I know it's the css I put in on my own sites when I'm building something with ckeditor, so maybe the fever took hold and guided me haha Anyway.....the default behaviour of the editor, without any modifications to the code, is as shown in the video - is that what you are looking to achieve, as that is what should be happening already: Create New Topic - Invision Community - Mozilla Firefox 25_03_2018 10_06_47.mp4 Link to comment Share on other sites More sharing options...
Davyc Posted March 25, 2018 Author Share Posted March 25, 2018 @Nathan Explosion not quite, if you were to add more text to the editor until it began to scroll the page then the editor would disappear off the top of the browser. However, I have found a plugin that does what I need: https://ckeditor.com/cke4/addon/fixed It works great and even moves the editor bar to the bottom when articles/posts get really long. Upload to plugins folder and add the text string to the js.config and it's done. For some reason it still doesn't work in the ACP, but I can live with that lol. Many thanks again for taking the time to help, very much appreciated and I hope your flu bug disappears faster than it arrived. ? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted March 25, 2018 Share Posted March 25, 2018 3 minutes ago, Davyc said: Upload to plugins folder and add the text string to the js.config and it's done Or you could just use the built in functionality of adding a plugin to the editor via the 'add button' option (believe me, it's easier....adding this in because others may want to add the plugin) Link to comment Share on other sites More sharing options...
Davyc Posted March 25, 2018 Author Share Posted March 25, 2018 I saw that at the last minute after doing this lol ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.