CKEditor Toolbar config

Gestart doorOne2xs2 reacties13 weergaven

3 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hoi,

Ik probeer me toolbar te veranderen maar het lukt niet.

CKEDITOR.editorConfig = function( config )
{
    config.toolbar = MyToolbar;
 
    config.toolbar_MyToolbar =
    [
        [Cut,Copy,Paste,PasteText,PasteFromWord,-,Scayt],
        [Undo,Redo,-,Find,Replace,-,SelectAll,RemoveFormat, Image, Smiley],
        [Styles,Format],
        [Bold,Italic,Strike],
        [Link,Unlink,Anchor],
    ];
};
CKEDITOR.replaceAll(
{
toolbar: MyToolBar
});


Ik krijg gewoon de standaard toolbar met alle opties confused
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Bump emo
0
Janm

Lid

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
config.width = 400px;
config.toolbar = FlooBY;

config.smiley_path = /images/smileys/;
config.smiley_descriptions =
[
];
config.smiley_images = [
angel_smile.gif,applause.gif,ass.gif,biggrin.gif,bloos.gif,broken_heart.gif, bye.gif,coffee.gif,confused_smile.gif,dance.gif,embaressed_smile.gif,clown.gif,fuckyou.gif,heart.gif,hypocrite.gif,lightbulb.gif,nerd.gif, nooo.gif,regular_smile.gif,sad_smile.gif,shades_smile.gif,shiny.gif,shocked.gif,thumbs_down.gif,thumbs_up.gif,thumbsup.gif,tounge_smile.gif,wink_smile.gif,worship.gif,yeahbaby.gif,xd.gif,cry.gif,kerst.gif,michel.gif,party.gif,sint.gif,sm_eerie.gif,vork.gif,yes_new.gif,push.gif];


config.toolbar_Full =
[
[Source,-,Save,NewPage,Preview,-,Templates],
[Cut,Copy,Paste,PasteText,PasteFromWord,-,Print, SpellChecker, Scayt],
[Undo,Redo,-,Find,Replace,-,SelectAll,RemoveFormat],
[Form, Checkbox, Radio, TextField, Textarea, Select, Button, ImageButton, HiddenField],
[BidiLtr, BidiRtl],
/,

[NumberedList,BulletedList,-,Outdent,Indent,Blockquote,CreateDiv],
[JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock],
[Link,Unlink,Anchor],
[Image,Flash,Table,HorizontalRule,Smiley,SpecialChar,PageBreak],
/,
[Styles,Format,Font,FontSize],
[TextColor,BGColor],
[Maximize, ShowBlocks,-,About]
];

config.toolbar_FlooBY =
[
[Bold,Italic,Underline,Strike],
[JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock],
[Link, Image, Smiley,-,SpecialChar,HorizontalRule],
[Font,FontSize],
[TextColor,BGColor,-,Source]
];


};


Zet dat in config.js neer, dan heb je een toolbar die je waarschijnlijk zoekt!
Je moet wel FlooBY aanpassen in je eigen site, en de smileys aanpassen.

Mvg
Saliox
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren