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
4 posters

    Text Editor Background Image

    avatar
    Customkid2
    Forumember


    Posts : 29
    Reputation : 1
    Language : English

    Solved Text Editor Background Image

    Post by Customkid2 April 7th 2016, 2:56 am

    So I'm attempting to add an image to my text editor, similar to this site. I've used the following script:

    Text Editor Background Image D4gPXte

    but I keep ending up with this:

    Text Editor Background Image JmXre7E

    I'd prefer the image be centered and not repeat but for some reason my CSS isn't affecting it much.

    I originally got the code from this tutorial: https://help.forumotion.com/t131617-add-a-background-image-to-the-editor

    If anyone could help I'd greatly appreciate it


    Last edited by Customkid2 on April 7th 2016, 8:07 pm; edited 1 time in total
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: Text Editor Background Image

    Post by Take Notes April 7th 2016, 2:59 am

    Code:
    .sceditor-container iframe, .sceditor-container textarea {
        background:url(http://2img.net/i/fa/empty.gif) !important;
        background-repeat: no-repeat;
        background-position: middle;
    }
    avatar
    Customkid2
    Forumember


    Posts : 29
    Reputation : 1
    Language : English

    Solved Re: Text Editor Background Image

    Post by Customkid2 April 7th 2016, 3:02 am

    No luck. Still repeating
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: Text Editor Background Image

    Post by Take Notes April 7th 2016, 3:11 am

    What is your forum link?
    avatar
    Customkid2
    Forumember


    Posts : 29
    Reputation : 1
    Language : English

    Solved Re: Text Editor Background Image

    Post by Customkid2 April 7th 2016, 3:19 am

    Sorry, should have included it before

    http://ninja-reborn.forumotion.com
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: Text Editor Background Image

    Post by Take Notes April 7th 2016, 3:53 am

    Code:
    .sceditor-container iframe, .sceditor-container textarea {
        background:url(http://2img.net/i/fa/empty.gif) !important;
        background-repeat: no-repeat;
        background-position: center;
    }
    avatar
    Customkid2
    Forumember


    Posts : 29
    Reputation : 1
    Language : English

    Solved Re: Text Editor Background Image

    Post by Customkid2 April 7th 2016, 3:56 am

    Same as before
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Text Editor Background Image

    Post by Ange Tuteur April 7th 2016, 11:41 am

    Hi,

    Find the existing CSS code you're using and replace it with the one below.
    Code:
    .sceditor-container iframe, .sceditor-container textarea {
      background:url(http://i.imgur.com/okd7x76.png) no-repeat 50% 50% !important;
    }
    avatar
    Customkid2
    Forumember


    Posts : 29
    Reputation : 1
    Language : English

    Solved Re: Text Editor Background Image

    Post by Customkid2 April 7th 2016, 8:06 pm

    Once again, perfect solution. Thanks!
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Text Editor Background Image

    Post by SLGray April 7th 2016, 8:48 pm

    Topic solved and archived



    Text Editor Background Image Slgray10

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

      Current date/time is November 11th 2024, 8:29 pm