• Resolved EngineerTrooper

    (@engineertrooper)


    Hello,

    it is possible to add a new feature to the plugin.
    It will be impossible if you can insert a custom background color for the spoiler.

    Can someone help, to insert it my self in the code of the plugin? Im more familial with C and C++ … so i try to learn php and mysql

    to Otshelnik-Fm i love the functions! It suits perfectly my workflow ??

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Vova Druzhaev

    (@otshelnik-fm)

    Hey.You can adjust the color through css

    https://yadi.sk/i/F8_PLczPIVOyNA

    Thread Starter EngineerTrooper

    (@engineertrooper)

    Hello,

    i found a more flexibel way to add a new color.

    You have to add code in 4 files, but your way also worked for me ??

    -> editor-style.css

    /*Added in line 23*/
    .otfm-sp__009688 {border-color: #009688;}
    /*009688 is the ID equal to the HexCodeColor*/

    /*Added in line 48*/
    .otfm-sp__009688 .otfm-sp__title {background-color: #009688; color:#fff;}

    -> bundle.js

    added in “colors” Array a new element with: ,{color:”#009688″,name:”19″}

    and more below in a second Array the same code: ,{color:”#009688″,name:”19″}

    -> otfm-spoiler-min.css

    Added: .otfm-sp__009688{border-color:#009688}

    and

    Added: .otfm-sp__009688 .otfm-sp__title{background-color:#009688;color:#fff}

    -> otfm-spoiler.css

    /*Added in line 24*/
    .otfm-sp__009688 {border-color:#009688;}

    /*Added in line 58*/
    .otfm-sp__009688 .otfm-sp__title{background-color:#009688;color:#fff;}

    ——————————————-

    You can add more colors with that way and with more scripts maybe add more styles via button control. (But i will try later for some practise.)

    You can check out the result here https://engineertrooper.com/faq/

    Thx for help ??
    kind regards

    Plugin Author Vova Druzhaev

    (@otshelnik-fm)

    As one of options – your way to be appropriate. But the update will erase your edits.
    So styles would be better to adjust custom css
    in your safe style.css

    Thread Starter EngineerTrooper

    (@engineertrooper)

    Yeah, thats right.
    Thats why i have a saving and maybe i find a way to approve the feature, with a more usebility friendly way.

    On the other side i can add more colors with that way and can use them. I can select the colors in the dashboard of a post direct.

    Do you know what i mean? A better way in the overlay to add more default colors? ??

    Plugin Author Vova Druzhaev

    (@otshelnik-fm)

    see FAQ section:
    How can I add my own color?
    or
    How to replace colors with your own set?

    available from plugin version 1.4.0

    Thread Starter EngineerTrooper

    (@engineertrooper)

    thx ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘More Colors in – Spoiler Color – menu’ is closed to new replies.