This manual allows you to take the control of the BBComposer's features.
The BBComposer allows an intuitive edition of XBBCodes, XHTML, Mediawiki syntax and BBCodes. To activate the editor, go on a web page containing a form with a multi line field (textarea). At this place, right-click in the field you want to edit, select BBComposer and select a language.
A new tab opens or the multi line field disappears (according to the preferences chosen in the options). You can now edit the content. Once the edition is finished, you'll have to click on the edition mode button in order to return to the normal form and to submit him.
The first functionality of the BBComposer is to enable you to edit the contents of your Internet website. It is the first stage. Indeed, we advise you to format the document only in a second time and to start typing all the text. Note that the enter key creates a new paragraph and the shift + enter keys creates a new line.
You will see that the text you type is formatted differently than on your own website. Don't worry, once the modifications will be saved, it will take the look of your site.
For the moment, all of the text is in paragraphs blocks. However, a text is much more complex than that, it can contain titles or lists. To add this type of blocks, two solutions are offered to you :
To navigate through the different blocs of the editor, you can use control + up and control + down.
Some buttons allow you to add semantic in the content of the document. You must select the text and click on one of the buttons of the tool bar :
How are you?
anchorto the title, and in the link, I entered this address
#anchor. It's very useful for a menu like in this manual.
To cancel a semantic qualification, simply place the cursor on the text you want and click on corresponding button to make it disappear. You can see the selected tag in the status bar.
BBComposer also allows to publish a document in a stylistic way with the CSS. A side bar is available in Tools>CSS
. Do not forget to select the element that you wish to modify before making modifications and to click on Apply
to make them effective.
Caution! These styles should not replace the use of the semantic buttons!
You can choose a color for the text. Red, for example!
You can choose a different font. Verdana, for example, is available on many systems.
Give a size to a text. The size can be defined in several different units: em, px, %, pt... O.9em for example.
The thickness of your texts. Unfortunately, Internet Explorer do not supports it correctly...
A text in italic in a click. The oblique does not function on all the navigators.
You can choose a decoration for your texts, underlined for example.
You can transform the letters of a text. All in capital letter!
This property is useless because no navigator recognizes it for the moment.
Allows to create an effect like small capital letters for the texts.
To center a text, for example!
They are parameters of advanced edition you will never use. Jump this part of the manual is you haven't enought time.
Allows to define a coefficient for of size-like font, if the font is not available, it is replaced by another of the same type.
As its name indicates, this style allows to adjust the line height.
The value of 150px is useful to illustrate tis style, but it's not very beautiful…
Size of space between each word.
Same thing, between each letter.
White spaces mode.
Allows to create a shadow effect on words, but it isn't supported yet by some navigators.
Properties relating to certain languages like Arabic.
These values can be in px and %.
It defines the margin between the border of the block and its contents. Here, it is 1px everywhere!
Even thing than higher, but outside the border. Here, it is 10% on the left and on the right.
Sets differents looks for blocks.
Change the color of backgrounds and see the life in pink!
A sympathic boder can be created by mixing all the possible options. Certain styles of borders are not supported by Internet Explorer 6…
The options enable you to adapt BBComposer to your taste.
You can use BBComposer for your sites, with this intention, you can make some adaptations.
BBComposer needs a reference to handle the multi line fields. That's why you should alway give a value to the attribute “id” of you textareas. BBComposer allows also the automatic switch in edition mode. For that, it is necessary to give to the attribute “id”, the value “fcontain”.
The major asset of BBComposer is to create semantically correct code. Unfortunately, the use of traditional BBCodes or Wiki syntax does not make it possible to benefit of this advantage. That's why we recommend to you to pass to XBBCodes. To help you to treat this language, we put in self-service the function PHP used by XCMS.
With any CMS:
You must use the function downloaded
above to interpret XBBCodes who will be transformed into XHTML. In PHP,
that will seems like that:<? php$xhtml = format_contain ($xbbcode);
?>
With SPIP:
It is necessary to
add a new filter. You initially must,
to modify your files skeletons. For example, for an article:
< (#TEXTE*|format_contain) >
The star is used to cancel the Spip treatment and
format_contain is the name of the function to be used. To be able to
use it, we must add it in Spip. For that, download this file and record it in Spip in the root directory of the site or where your skeletons are stored:
In order to facilitate your passage to XBBCodes, we took as a starting point an existing function to provide you a function allowing to carry out the convertion.
Do not hesitate to propose more powerful alternatives than those functions and we will be glad to publish them here.
To improve the BBComposer, we are currently considering to developp other functions. Every help will be appreciate.