Add-on Add/Remove fonts and more.

Barbossa

Active member
Hi there, I need to get those done,
  1. This.
  2. Tweaking this.
  3. On/off option from admin panel including little tweak for this.
For further details/Questions, please PM with your quotation. :)
 
In js/bb_code_edit.js
Code:
d.each({
                Arial: "arial,helvetica,sans-serif",
                "Book Antiqua": "'book antiqua',palatino,serif",
                "Courier New": "'courier new',courier,monospace",
                Georgia: "georgia,palatino,serif",
                Tahoma: "tahoma,arial,helvetica,sans-serif",
                "Times New Roman": "'times new roman',times,serif",
                "Trebuchet MS": "'trebuchet ms',geneva,sans-serif",
                Verdana: "verdana,geneva,sans-serif",
                Helvetica: "Helvetica,Arial,sans-serif"
            }, function (a, b) {
                h[a] = {
                    title: a,
                    callback: g,
                    style: "font-family: " + b
                }
            });
I added Helvetica Font. See the syntax and change it as per your needs. This is the easiest way for adding custom fonts.

Note: This is the uncompressed version.
 
In js/bb_code_edit.js
Code:
d.each({
                Arial: "arial,helvetica,sans-serif",
                "Book Antiqua": "'book antiqua',palatino,serif",
                "Courier New": "'courier new',courier,monospace",
                Georgia: "georgia,palatino,serif",
                Tahoma: "tahoma,arial,helvetica,sans-serif",
                "Times New Roman": "'times new roman',times,serif",
                "Trebuchet MS": "'trebuchet ms',geneva,sans-serif",
                Verdana: "verdana,geneva,sans-serif",
                Helvetica: "Helvetica,Arial,sans-serif"
            }, function (a, b) {
                h[a] = {
                    title: a,
                    callback: g,
                    style: "font-family: " + b
                }
            });
I added Helvetica Font. See the syntax and change it as per your needs. This is the easiest way for adding custom fonts.

Note: This is the uncompressed version.
You mean, I can use our own Bengali fonts there?
 
Or if you are running a VPS you could peruse this resource. It even has an update on editing the JS for the editor to allow additional fonts (and has info on a problem by doing that that presents itself).
 
Top Bottom