Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 66 users online :: 0 Registered, 0 Hidden and 66 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Add maximize to the editor
Page 1 of 1 • Share
This simple trick will allow you to add an existing button to the editor; a button to maximize the editor so it takes up the whole screen.
Installation
Go to Administration panel > Modules > JavaScript codes management and create a new script
Title : SCE Maximize
Placement : In all the pages
Save the script and you should now have the maximize button to the left of source mode !
Information
The maximize button already exists in the editor code, but was filtered out by Forumotion. Adding it back in is simple. Once the document is ready a global called toolbar is declared which contains all the toolbar options. We then replace source by maximize,source, splicing in the maximize button. The other code included in the script is to hide the forumotion toolbar during maximization.
You can also redeclare the entire toolbar yourself. For example instead of :
We can write :
Which only gives us the bold, italic, color, and font buttons.
Other default options can also be added in. For a full list I recommend checking out the SCEditor documentation.
http://www.sceditor.com/documentation/options/
Installation
Go to Administration panel > Modules > JavaScript codes management and create a new script
Title : SCE Maximize
Placement : In all the pages
- Code:
$(function(){
if (!$.sceditor || !toolbar) return;
toolbar = toolbar.replace(/source/,'maximize,source');
$(function() {
var sce = $('#text_editor_textarea').sceditor('instance'), fa = document.getElementById('fa_toolbar');
$('.sceditor-button-maximize')[0].onclick = function() {
if (!fa) return;
sce.maximize() && (fa.style.display = 'none');
!sce.maximize() && (fa.style.display = '');
};
});
});
Save the script and you should now have the maximize button to the left of source mode !
Information
The maximize button already exists in the editor code, but was filtered out by Forumotion. Adding it back in is simple. Once the document is ready a global called toolbar is declared which contains all the toolbar options. We then replace source by maximize,source, splicing in the maximize button. The other code included in the script is to hide the forumotion toolbar during maximization.
You can also redeclare the entire toolbar yourself. For example instead of :
- Code:
toolbar = toolbar.replace(/source/,'maximize,source');
We can write :
- Code:
toolbar = 'bold,italic|color,font';
Which only gives us the bold, italic, color, and font buttons.
Other default options can also be added in. For a full list I recommend checking out the SCEditor documentation.
http://www.sceditor.com/documentation/options/
Notice |
Tutorial written by Ange Tuteur. Reproduction not permitted without consent from the author. |
Last edited by Ange Tuteur on Mon 20 Jun 2016, 09:36; edited 2 times in total
- Code:
bold,italic,underline,strike|left,center,right,justify|bulletlist,orderedlist,horizontalrule|quote,code,faspoiler,fahide,table|servimg,image,email,link,unlink|youtube,dailymotion,flash|size,color,font,removeformat|date,time,pastetext,cut,copy,paste|more|subscript,superscript,fascroll,faupdown,fawow,farand|print,maximize,source
- Ch@lo Valdez
- Gender :
Age : 49
Posts : 65
Points : 3896
Reputation : 5
Location : Mexico
Language : eng spa
Browser : Forum Version :
- GastGuest
Hello. I'm interested. This is for your edge too? I want to have 100% editor and few buttons. Is it possible? And everything in the buttons say English. Why? When Samantha installed your edge her choice was Dutch. I am surprised.
@Prometheus yes, this plugin should work regardless of forum version. The language of the buttons is based on the language chosen in your forum profile settings ; Profile > Preferences > Board Language. If the tooltips are still in English, then the problem comes from Forumotion not providing a full translation.
- GuestGuest
Ange Tuteur wrote:@Prometheus yes, this plugin should work regardless of forum version. The language of the buttons is based on the language chosen in your forum profile settings ; Profile > Preferences > Board Language. If the tooltips are still in English, then the problem comes from Forumotion not providing a full translation.
I just had a quick look at the Quick Reply box, but it doesn't resize to 100% on Edge ...
- GuestGuest
Sorry, but there are no JS errors. I checked yesterday. The Quick reply box just won't resize to 100% ...
- GuestGuest
No, I mean... look at the QR (Quick Reply):
and the normal reply:
See the difference? We'd like the QR to have max width, spread all to the right. I had something for that on my friendcodes.nl before. Guess this topic just don't apply to the QR...
and the normal reply:
See the difference? We'd like the QR to have max width, spread all to the right. I had something for that on my friendcodes.nl before. Guess this topic just don't apply to the QR...
- GuestGuest
Thanks, @Ange Tuteur. That worked perfectly
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum