Back To Top
Visit Us At TwitterVisit Us At YouTubeVisit Us At Facebook
KandiChat is in Beta Release. Try It Out
  • UpdatesUpdates  
  • SearchSearch  
  • RegisterRegister  
  • Log inLog in  
  • April 2019

    Calendar Calendar


    Display results as :

    Rechercher Advanced Search


    Changing What Buttons To display in text Editor Empty
    Who is online?
    In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest


    Most users ever online was 22 on June 26th 2013, 6:10 am
    RSS feeds

    Top posting users this week

    View previous topic View next topic Go down  Message [Page 1 of 1]


    Changing What Buttons To display in text Editor

    Hey guys so while digging, here is a cool code to add to change which buttons are displayed in the header of the texteditor (where all buttons are) and add more buttons as well.

    So go to the CSEditor JavaScript we had you make already, if you don't have this create a new JavaScript and label it CSEditor JavaScript and we will use this quite a bit for the Editor Tutorials.

    Now if you have the change text code go below that. before the last closing tag }); and then add this code:

             locale: "en",
             plugins: "bbcode",
             toolbar: "",

    Within the Toolbar quotes section we can add our buttons, the allowed buttons are listed below.


    • bold

    • italic

    • underline

    • strike

    • subscript

    • superscript

    • left

    • center

    • right

    • justify

    • font

    • size

    • color

    • removeformat

    • cut

    • This only works in IE due to security permissions. In all other browsers it’s just disabled.

    • copy

    • This only works in IE due to security permissions. In all other browsers it’s just disabled.

    • paste

    • This only works in IE due to security permissions. In all other browsers it’s just disabled.

    • pastetext

    • bulletlist

    • orderedlist

    • table

    • code

    • quote

    • horizontalrule

    • image

    • email

    • link

    • unlink

    • emoticon

    • youtube

    • date

    • time

    • ltr

    • rtl

    • print

    • maximize

    • source

    • fahide

    • faspoiler

    • servimg

    Now to separate them like they originally are just add a | in between the sections you want a new area.

    So for example:


    Hope this helps you all. Later we will discuss how to add your own, to be visible in the HTML editor and the BBcode editor!
    Share this post on: diggdeliciousredditstumbleuponslashdotyahoogooglelive

    You will need the full SCEditor to make this all work properly. Thank You!

       $(document).ready(function() {
             locale: "en",
             width: "100%",
             height: "200px",
             plugins: "bbcode",
             toolbar: "bold,italic,underline,strike|left,center,right,justify|quote,code,faspoiler,fahide|servimg,image,link,youtube|size,color,font,removeformat|emoticon,date,time,source",
             style: "",
             rtl: false,
             emoticonsRoot: "",
             emoticonsCompat: true,
             emoticons: {
                dropdown: {
                   ":D": "",":)": "",":(": "",":o": "",":shock:": "","8)": "",":lol:": "",":x": "",":P": "",":oops:": "",":cry:": "",":evil:": "",":roll:": "",";)": "",":idea:": "",":|": "",":clown:": "",":silent:": "",":confused:": "",":afraid:": "",":8*": "",":nerd:": "",":whew:": "",":hmm:": "",":sealed:": "",":zZz:": "",":brains:": ""

    Post on June 12th 2013, 5:54 pm by Mr.EasyBB

    This code is great, but is there a way to do this without losing my own smilies?

    Post on June 13th 2013, 3:35 am by willyrka

    Try removing all the emot options. I haven't tried that much yet.

    Post on June 13th 2013, 3:37 am by Mr.EasyBB

    It replaces my smilies with a couple of basic (but not all) text codes (no pictures, even), but even if I leave your smilies in, they don't show up in the posts (because the text codes are different than the ones we have on our forum). It's actually the only problem I'm having with this code. If you could find a way to use this without affecting which smilies show up in the smiley window, this code would be really helpful.

    Post on June 13th 2013, 3:46 am by willyrka

    well I'm on my cell phone now so in the morning ill hellp ypu ok

    Post on June 13th 2013, 3:51 am by Mr.EasyBB

    Thanks! Much appreciated. I'll check out the thread regularly. Smile

    Post on June 13th 2013, 3:54 am by willyrka

    Any news on this? Smile

    Post on June 14th 2013, 8:40 am by willyrka

    So I've been talking to the creator of this script itself, and we had a solution though since they set the toolbar option in the constructor which is that template I give, the only solution to removing any of the buttons we will have to use.

    $(function() {

    So say we don't want the Youtube button and the quote button per say. We will do this-

    $(function() {

    Post on June 14th 2013, 12:57 pm by Mr.EasyBB

    Hi, thank you for getting back to me! It works only in quick reply, not in the full reply, but still works! Smile

    But I have a question. This excludes some buttons - is there also a way to mix them up and decide on where the toolbar is separated, like you could in your code?

    Post on June 14th 2013, 2:17 pm by willyrka

    Ill try to figure something out. Like I said I've been talking to Sam Clarke creator of the script. Its a mit license for commercial or private and FM decided to use it

    Post on June 14th 2013, 4:20 pm by Mr.EasyBB

    Post  by Sponsored content

    View previous topic View next topic Back to top  Message [Page 1 of 1]