The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Editor text color change

    Joost
    Joost
    Active Poster


    Male Posts : 1402
    Reputation : 194
    Language : Dutch, English
    Location : The Netherlands

    Solved Editor text color change

    Post by Joost Sun 6 Aug - 20:46

    Hello,

    How can i change the self-written text color in my editor ?

    -screenshots deleted by Joost-


    Last edited by Joost on Mon 7 Aug - 20:35; edited 2 times in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Editor text color change

    Post by SLGray Sun 6 Aug - 20:52

    CSS:
    Code:
    .sceditor-container iframe, .sceditor-container textarea {
        color:  YOUR COLOR;
    }



    Editor text color change Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Joost
    Joost
    Active Poster


    Male Posts : 1402
    Reputation : 194
    Language : Dutch, English
    Location : The Netherlands

    Solved Re: Editor text color change

    Post by Joost Sun 6 Aug - 20:57

    It's not working on my forum this css code. Sad
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Editor text color change

    Post by SLGray Sun 6 Aug - 21:02

    Code:
     Â       .sceditor-container iframe, .sceditor-container textarea {
     Â           color:  YOUR COLOR !important;
     Â       }



    Editor text color change Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Joost
    Joost
    Active Poster


    Male Posts : 1402
    Reputation : 194
    Language : Dutch, English
    Location : The Netherlands

    Solved Re: Editor text color change

    Post by Joost Sun 6 Aug - 21:06

    I have refresh my forum with CTRL + F5 , i don't see this change... Sad
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Editor text color change

    Post by SLGray Sun 6 Aug - 21:11

    Add it to the top of your CSS stylesheet.  If this does not work, please clear your browser's cache and history.



    Editor text color change Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Joost
    Joost
    Active Poster


    Male Posts : 1402
    Reputation : 194
    Language : Dutch, English
    Location : The Netherlands

    Solved Re: Editor text color change

    Post by Joost Sun 6 Aug - 21:19

    I have this done, not working..
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Editor text color change

    Post by Draxion Mon 7 Aug - 4:46

    Hi there, since the editor is an iframe, you have to add CSS via JavaScript.

    Add this to your JavaScripts.
    Title: Whatever you please.
    Placement: all pages.
    Code:
    $(function() {
     Â $(function() {
     Â   $(".sceditor-container iframe")
     Â     .contents()
     Â     .find("head")
     Â     .append(
     Â       "<style>body,html,code:before,p,table{color:#FFFFFF!important;}</style>"
     Â     );
     Â });
    });

    Where it says color:YOUR COLOR!important;. That's where you edit your text color in the editor.
    Joost
    Joost
    Active Poster


    Male Posts : 1402
    Reputation : 194
    Language : Dutch, English
    Location : The Netherlands

    Solved Re: Editor text color change

    Post by Joost Mon 7 Aug - 20:35

    Thank you very much @Draxion Very Happy
    Draxion
    Draxion
    Helper
    Helper


    Male Posts : 2518
    Reputation : 321
    Language : English
    Location : USA

    Solved Re: Editor text color change

    Post by Draxion Mon 7 Aug - 21:00

    You're welcome. Smile
    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules

      Current date/time is Sun 22 Sep - 20:30