Default Status of editor's buttons

Go down

Solved Default Status of editor's buttons

Post by 5arid on Thu Jul 31 2014, 09:03

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 Thu Jul 31 2014, 20:39; 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 Thu Jul 31 2014, 12:30

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 : 13202
Reputation : 2918
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 Thu Jul 31 2014, 14:01

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 Thu Jul 31 2014, 19:55

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 : 13202
Reputation : 2918
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 Thu Jul 31 2014, 20:37

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 Thu Jul 31 2014, 21:23

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 : 13202
Reputation : 2918
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