Changes for page Configuration

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

From version 12.1
edited by Marius Dumitru Florea
on 2010/06/02 18:47
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
... ... @@ -67,9 +67,11 @@
67 67  * **removeformat**: remove all in-line text formatting)))|-
68 68  |**history**|Controls the editing history.|(((* **undo**: go one step back in the editing history
69 69  * **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**
70 70  |**indent**|Allows you to increase or decrease the indentation of list items.|(((* **outdent**: decrease indentation
71 71  * **indent**: increase indentation)))|-
72 -|**image**|Adds support for inserting and editing images|-|**image**
73 73  |**justify**|Controls the text alignment.|(((* **justifyleft**: align text left
74 74  * **justifycenter**: center text
75 75  * **justifyright**: align text right
... ... @@ -78,7 +78,7 @@
78 78  |**link**|Add support for creating and editing different kind of links|-|**link**
79 79  |**list**|Adds support for creating lists|(((* **unorderedlist**: creates bulleted lists
80 80  * **orderedlist**: numbered lists)))|-
81 -|**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**
82 82  |**separator**|Offers different kind of content and toolbar separators|(((* **hr**: inserts a horizontal ruler
83 83  * **|**: separates toolbar features in groups
84 84  * **/**: breaks the toolbar in multiple lines)))|-
... ... @@ -146,3 +146,18 @@
146 146  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.
147 147  
148 148  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