The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Default Status of editor's buttons

Go down

Solved Default Status of editor's buttons

Post by 5arid on July 31st 2014, 8:03 am

Hi
Sorry if this is answered before, but I couldn't find anything.

I want to start the editor (for posting a message) with :
1. "Align right" button enabled
2. "Switch Editor Mode" button disabled

How can I do it?
Thanks in advance


Last edited by 5arid on July 31st 2014, 7:39 pm; edited 1 time in total

5arid
New Member

Posts : 13
Reputation : 1
Language : Farsi

http://microbaz.motionforum.net

Back to top Go down

Solved Re: Default Status of editor's buttons

Post by Ange Tuteur on July 31st 2014, 11:30 am

Hi,

For Source Code mode add the following to your Stylesheet
Display > Colors > CSS stylesheet
Code:
.sceditor-container textarea { text-align:right !important; }

You can change the default editor mode here :
Administration Panel > General > Messages and E-mails > Configuration

Find the option "Activate the WYSIWYG mode by default in the posts" and change it to what you wish.
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Default Status of editor's buttons

Post by 5arid on July 31st 2014, 1:01 pm

I couldn't fix this :
"Align right" button enabled

Also I tried to change "left" to "right" in this code but still nothing :
Code:
.post-options {text-align: left;}

Any idea how to fix it?

By the way I am using phpbb2 version

5arid
New Member

Posts : 13
Reputation : 1
Language : Farsi

http://microbaz.motionforum.net

Back to top Go down

Solved Re: Default Status of editor's buttons

Post by Ange Tuteur on July 31st 2014, 6:55 pm

Are you using mode WYSIWYG ? If so go to : Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In all the pages
Paste the code below and submit :
Code:
$(function(){$(function(){$('.sceditor-container iframe').contents().find('p').attr('align','right')})});
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Default Status of editor's buttons

Post by 5arid on July 31st 2014, 7:37 pm

It worked, thanks a lot!
Also this should be enabled : "Enable Javascript code management :"

5arid
New Member

Posts : 13
Reputation : 1
Language : Farsi

http://microbaz.motionforum.net

Back to top Go down

Solved Re: Default Status of editor's buttons

Post by Ange Tuteur on July 31st 2014, 8:23 pm

You're welcome, and you are right JS code management should be enabled. Wink

Topic archived

If you have anymore problems you can let us know by opening a new topic. Have a good day. Smile
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum