Jump to content


Changing the font colors in the editor table


  • You cannot start a new topic
  • You cannot reply to this topic
4 replies to this topic

#1 WD1983

    Member

  • 13 posts
  • Joined: September 12, 2011
  • 3 topics
  • Age: 28
  • Local time: 09:15 PM
  • Zodiac:Libra
  • Gender:Male
  • Location:Lakewood, CO, USA
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 12h 29m 21s

Posted 18 September 2011 - 12:39 AM

How can you change the default colors available in the color table in the editor?

I want to replace two of the colors with the colors that I use on the board. I use 3.1.4.

#2 Broni Re: Changing the font colors in the editor table

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 08:15 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Online
  • Time Online: 57d 10h 30m 28s

Posted 18 September 2011 - 12:50 AM

This is all part of CKEditor code. It's not even IPB application, but 3rd party program, so no, I have no idea.

#3 WD1983 Re: Changing the font colors in the editor table

    Member

  • 13 posts
  • Joined: September 12, 2011
  • 3 topics
  • Age: 28
  • Local time: 09:15 PM
  • Zodiac:Libra
  • Gender:Male
  • Location:Lakewood, CO, USA
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 12h 29m 21s

Posted 18 September 2011 - 01:03 AM

There's no php file that has the code in it that can be edited? I don't necessarily need to use the template editor for IPB but I can edit any of the files for the board since it's actually installed on my computer.

#4 WD1983 Re: Changing the font colors in the editor table

    Member

  • 13 posts
  • Joined: September 12, 2011
  • 3 topics
  • Age: 28
  • Local time: 09:15 PM
  • Zodiac:Libra
  • Gender:Male
  • Location:Lakewood, CO, USA
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 12h 29m 21s

Posted 18 September 2011 - 01:14 AM

Found it.

It's in the ipb.js file.

/* Values for the IPB text editor */

IPBoard.prototype.editor_values = $H({
    'templates':         $A(),
    'colors_perrow':     8,
    'colors': [         '000000' , 'A0522D' , '556B2F' , '006400' , '483D8B' , '000080' , '4B0082' , '2F4F4F' ,
                        '8B0000' , 'FF8C00' , '808000' , '008000' ,    '008080' , '0000FF' , '708090' , '696969' ,
                        'FF0000' , 'F4A460' , '9ACD32' , '2E8B57' , '48D1CC' , '4169E1' , '800080' , '808080' ,
                        'FF00FF' , 'FFA500' , 'FFFF00' , '00FF00' ,    '00FFFF' , '00BFFF' , '9932CC' , 'C0C0C0' ,
                        'FFC0CB' , 'F5DEB3' , 'FFFACD' , '98FB98' ,    'AFEEEE' , 'ADD8E6' , 'DDA0DD' , 'FFFFFF'
                    ],

The colors can be manually changed there.

#5 Broni Re: Changing the font colors in the editor table

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 08:15 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Online
  • Time Online: 57d 10h 30m 28s

Posted 18 September 2011 - 01:33 AM

This is interesting info.
Thanks for sharing :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 8 user(s)