Customise The Wikidot Editor

Posted by RobElliott on 03 Oct 2008 09:50, last edited by GoVegan on 09 May 2010 05:39

: css custom customise editor

rating: +20

The default wikidot editor is black text on a white background. But by using custom CSS you can change the title, main editor panel and short description panel to different colours, fonts, borders and other elements. You can also change the dialog box that comes up when you save a page and even the animation during the save process.

Creating Your Custom CSS

You will need to know how to alter the CSS (custom style sheets) on your wiki. Wikidot recommends that you create a page, perhaps called css:theme, where you enter your CSS. Then in the admin:manage page go to Appearance -> Custom Theme and create your custom theme. If you have already created one you can select edit. Select the default theme you are extending then scroll down and press Import. Enter the name of your css file, e.g css:theme, and then save changes. Then go back to Appearance -> Themes, click on _default and from the dropdown menu select your custom theme then click on the Save Changes button. When you go back to another page in your wiki it will now be using your custom theme.

That was only a brief introduction to creating your custom CSS page. In the links below there is a more detailed description.

CSS Code

In the editor you have a title, main text entry panel and a smaller panel to give an optional short summary of the changes you have made.

Title

To change the CSS elements that control the font, background and border for the title, in your custom CSS page enter the first line input.text#edit page title { and on the following lines you can enter a number of different elements for background-color, color, border style and color and many other elements. These are always followed bya semi-colon ; and at the end of the code you enter }. If you delete any element it will inherit the atttribute from the default wikidot one. So for this example the code to go into your custom CSS page looks like this:

input.text#edit-page-title {
 background-color: #FDEABC;
 border: 1px solid #468259;
 color: #659860;
 font-family: verdana,arial,helvetica,sans-serif;
 font-size: 90%;
 padding: 5px;
}

Main Text Entry Panel

The first line of the CSS code is different for the main text entry panel and is textarea#edit-page-textarea. The elements for background-color, color etc are the same as for the title box. So for the main data entry panel the custom CSS would look like this:

textarea#edit-page-textarea {
 background-color: #FDEABC;
}

Summary Panel

The background-color, color and other elements are again the same but the first line of the CSS code should read textarea#edit-page-comments which means your custom CSS code will look like this:

textarea#edit-page-comments {
 background-color: #FDEABC;
}

Pop Up Messages

To change the background colour of the "Saving Page" dialog box that comes up when you save a page, the text in that box and the wait animation, add the following to your custom CSS code:

.owindow.owait .content {
 background-image:url(http://strathviewconsultants.wikidot.com/local--files/css:theme/wait22trans.gif);
 background-color:#FDEABC;
}
.owindow {
 background-color:#FDEABC;
 color:#468259;
 border: 2px solid #FDEABC;
}
.owindow .title {
 background-color:#FDEABC;
}

Hover Text and Background

To change the background colour and text colour of the tooltips that come up when you hover over one of the editor buttons, add the following to your custom CSS:

.hovertip {
 background-color:#FDEABC;
 color:#468259;
}

The Result

The result of the above changes is shown below:

wdeditor.png

Links

http://community.wikidot.com/howto:design-your-own-css-theme

Authors

RobElliott RobElliott . Please visit his/her userPage.

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +20

Removing the buttons
leiger leiger 23 Jul 2009 12:34

Is there any way to remove the buttons? i.e. only show the Post title and main text entry area?


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 23 Jul 2009 12:34
Re: Removing the buttons
RobElliott RobElliott 23 Jul 2009 13:25

Yes, in your custom CSS add the following:

.wd-editor-toolbar-panel {
 display: none;
}

Rob


Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.

by RobElliott RobElliott , 23 Jul 2009 13:25
Re: Removing the buttons
pieterh pieterh 23 Jul 2009 15:33

We're designing a new comment user interface that has no buttons and is simpler to use. In the meantime, RobElliott's solution is a nice one.

by pieterh pieterh , 23 Jul 2009 15:33
Re: Removing the buttons
BobChao BobChao 15 Jun 2010 05:51

To disable (well, "hide") buttons in in-page comment form:

#np-editor-panel{display:none;}
by BobChao BobChao , 15 Jun 2010 05:51
Please help with the background color
Clairvoyance Clairvoyance 15 Jul 2010 08:56

I have search everywhere but still couldn't figure out how to change the background color of the following areas:

In the editor page:
editpage.jpgThe "close window" button when I click on my account icon:
accountpopup.jpg

Thank you very much in advance.

by Clairvoyance Clairvoyance , 15 Jul 2010 08:56
Re: Please help with the background color
leiger leiger 15 Jul 2010 09:00

It's a bit hard to test without seeing your site in my browser - I had a look but they're both private.

I'll see if I can figure it out using one of my own sites. Will reply back here if I have any suggestions.


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 15 Jul 2010 09:00
Re: Please help with the background color
leiger leiger 15 Jul 2010 09:12

Okay, the first one just needs you to add !important to the CSS, to override the existing definition:

#lock-info{background-color:#999999 !important;
}

And the second one (the button) needs the same thing (for the same reason):

.button-bara{background-color:#999999 !important;
}

The !important modifier prevents any definitions from further down in the CSS from modifying it (unless they have !important as well).


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

Last edited on 15 Jul 2010 09:14 by leiger
by leiger leiger , 15 Jul 2010 09:12
Re: Please help with the background color
Clairvoyance Clairvoyance 15 Jul 2010 09:18

Yay! It works ^_^

Thank you very much!!!

by Clairvoyance Clairvoyance , 15 Jul 2010 09:18

Related articles

Comments

Removing the buttons
leiger leiger 23 Jul 2009 12:34

Is there any way to remove the buttons? i.e. only show the Post title and main text entry area?


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 23 Jul 2009 12:34
Re: Removing the buttons
RobElliott RobElliott 23 Jul 2009 13:25

Yes, in your custom CSS add the following:

.wd-editor-toolbar-panel {
 display: none;
}

Rob


Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.

by RobElliott RobElliott , 23 Jul 2009 13:25
Re: Removing the buttons
pieterh pieterh 23 Jul 2009 15:33

We're designing a new comment user interface that has no buttons and is simpler to use. In the meantime, RobElliott's solution is a nice one.

by pieterh pieterh , 23 Jul 2009 15:33
Re: Removing the buttons
BobChao BobChao 15 Jun 2010 05:51

To disable (well, "hide") buttons in in-page comment form:

#np-editor-panel{display:none;}
by BobChao BobChao , 15 Jun 2010 05:51
Please help with the background color
Clairvoyance Clairvoyance 15 Jul 2010 08:56

I have search everywhere but still couldn't figure out how to change the background color of the following areas:

In the editor page:
editpage.jpgThe "close window" button when I click on my account icon:
accountpopup.jpg

Thank you very much in advance.

by Clairvoyance Clairvoyance , 15 Jul 2010 08:56
Re: Please help with the background color
leiger leiger 15 Jul 2010 09:00

It's a bit hard to test without seeing your site in my browser - I had a look but they're both private.

I'll see if I can figure it out using one of my own sites. Will reply back here if I have any suggestions.


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 15 Jul 2010 09:00
Re: Please help with the background color
leiger leiger 15 Jul 2010 09:12

Okay, the first one just needs you to add !important to the CSS, to override the existing definition:

#lock-info{background-color:#999999 !important;
}

And the second one (the button) needs the same thing (for the same reason):

.button-bara{background-color:#999999 !important;
}

The !important modifier prevents any definitions from further down in the CSS from modifying it (unless they have !important as well).


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

Last edited on 15 Jul 2010 09:14 by leiger
by leiger leiger , 15 Jul 2010 09:12
Re: Please help with the background color
Clairvoyance Clairvoyance 15 Jul 2010 09:18

Yay! It works ^_^

Thank you very much!!!

by Clairvoyance Clairvoyance , 15 Jul 2010 09:18
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /