Changes for page Configuration

Last modified by Ecaterina Moraru (Valica) on 2017/09/04 14:27

From version 11.1
edited by Marius Dumitru Florea
on 2009/11/12 09:18
Change comment: There is no comment for this version
To version 13.1
edited by Marius Dumitru Florea
on 2010/06/18 18:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -15,6 +15,7 @@
15 15  === Configuration Parameters ===
16 16  
17 17  |=Parameter Name|=Description|=Default Value
18 +|**allowExternalImages**|Specifies if inserting external images is allowed or not. Setting this configuration parameter to ##false## hides the //External// tab from the Insert Image dialog.|##true##
18 18  |**colors**|The list of colors available on the color picker. Colors are specified by their hex code and are separated by comma.|###000000,#444444,#666666,#999999,#CCCCCC,#EEEEEE,#F3F3F3,#FFFFFF,
19 19  #FF0000,#FF9900,#FFFF00,#00FF00,#00FFFF,#0000FF,#9900FF,#FF00FF,
20 20  #F4CCCC,#FCE5CD,#FFF2CC,#D9EAD3,#D0E0E3,#CFE2F3,#D9D2E9,#EAD1DC,
... ... @@ -66,9 +66,11 @@
66 66  * **removeformat**: remove all in-line text formatting)))|-
67 67  |**history**|Controls the editing history.|(((* **undo**: go one step back in the editing history
68 68  * **redo**: go one step forward in the editing history)))|-
70 +|**image**|Adds support for inserting and editing images|-|**image**
71 +|**import**|Adds support for importing external content|(((* **import:officefile**: import office document
72 +* **paste**: paste rich text from the clipboard)))|**import**
69 69  |**indent**|Allows you to increase or decrease the indentation of list items.|(((* **outdent**: decrease indentation
70 70  * **indent**: increase indentation)))|-
71 -|**image**|Adds support for inserting and editing images|-|**image**
72 72  |**justify**|Controls the text alignment.|(((* **justifyleft**: align text left
73 73  * **justifycenter**: center text
74 74  * **justifyright**: align text right
... ... @@ -77,7 +77,7 @@
77 77  |**link**|Add support for creating and editing different kind of links|-|**link**
78 78  |**list**|Adds support for creating lists|(((* **unorderedlist**: creates bulleted lists
79 79  * **orderedlist**: numbered lists)))|-
80 -|**macro**|Adds support for inserting and editing macros|-|**macro**
83 +|**macro**|Adds support for inserting and editing macros|(((* **macro:macroId**: insert the macro with the specified identifier, e.g. use macro:velocity to add a button on the tool bar that triggers the insert Velocity macro wizard)))|**macro**
81 81  |**separator**|Offers different kind of content and toolbar separators|(((* **hr**: inserts a horizontal ruler
82 82  * **|**: separates toolbar features in groups
83 83  * **/**: breaks the toolbar in multiple lines)))|-
... ... @@ -145,3 +145,18 @@
145 145  You can place the Background Color button anywhere on the toolbar. Just make sure you leave a space before and after, unless its the first or the last feature on the toolbar.
146 146  
147 147  That's it. You have to restart your server because macros.vm is cached by default at application startup. Reload the edited page and you should see the Background Color button appear on the toolbar of your WYSIWYG editor.
151 +
152 +=== Add an 'Insert HTML macro' button on the tool bar ===
153 +
154 +Suppose you use the HTML macro very often and thus you'd like to have a quick way to insert it from the tool bar. You don't use the HTML macro that often? No problem, it works with any macro. You just need to follow this steps:
155 +
156 +1. Add ##macro:html## (or ##macro:yourCoolMacro## if you like ##yourCoolMacro## more) to the tool bar configuration as explained in the previous example.
157 +1. Set a custom icon for the tool bar button by adding:
158 +
159 +{{code language=none}}
160 +.macro-html {
161 + background-image:url("/xwiki/resources/icons/silk/html.gif") !important;
162 +}
163 +{{/code}}
164 +
165 +to your skin. Of course you can use a different icon and you can replace ##html## with the identifier of your macro. The easiest way to adds this CSS fragment to the skin is by adding a ##XWiki.StyleSheetExtension## object to a page and set it to be always used on the wiki.

Get Connected