SMF Support > SMF 2.0.x Support

editor - add drop down

(1/1)

arfa:
I would like to add a "highlite background" drop down with a list of possible colours - only needs be about 8.

I have managed to work out how to get a single button working - so only one colour.

I have searched for 'comic sans' - to locate the font-family build...
searched 'aFontFaces' ... nope.
then...
I only mention this to indicate some efforts - and some code experience.

Where is the build buried?
and is it just a matter of adding another array or loop or whatever? Or whatever  :-\

thanks

arfa:
Sweating this baby.. :o

So far ___________
go to
/Themes/(theme_name)/GenericControls.template.php

after: if (!isset($context['disabled_tags']['color']))
   add similar list - bgcolor......... yes, list appears
go to
sources/subs.php
after: array(
            'tag' => 'font',
            'type' => 'unparsed_equals',
   add similar list .... no apparrent change
TRIED...
[theme]/scripts/editor.js > find: this.opt.oBBCBox.setSelect('sel_color', sCurFontColor);
   and add for new drop-down ...
   I added:    this.opt.oBBCBox.setSelect('sel_bgcolor', sCurBackColor);
      BUT.. bad result

And now????? where to mon ami

arfa:
I would like to add a dropdown to select text bg color.

So far I have...
go to: /Themes/(theme_name)/GenericControls.template.php
after > if (!isset($context['disabled_tags']['color']))
   add similar list - bgcolor

I then tried going to: Subs.php
after > 'tag' => 'color',
I added a similar array and tried both style = background & background-color
    nothing...

What am I missing to get this working?

Navigation

[0] Message Index

Go to full version