Edit box changes code Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
5 posters

    Edit box changes code

    avatar
    boffer10
    Forumember


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved Edit box changes code

    Post by boffer10 16/4/2014, 21:46

    I've been having the problem in post edit boxes and in the AP edit boxes.  When I put in a code and click Preview, the code will display properly.  If I hit preview again, the code is changed.  It happens in multiple browsers and on multiple forums, including here.

    This is a simple code that I used for several years with no problems.  It's been in the last six months or so that I've had this problem.

    Code:

    The first time I hit preview:

    The second time I hit preview:

    It's easy to duplicate: just copy/paste my code into a reply edit box.  Click Preview once, then a second time.

    I've re-written the code in HTML and get the same results.  I have several different codes in my Homepage Message Box that are doing something similar when I hit the save button a second time.

    Any suggestions?

    Thanks

    http://squarefoot.creatingforum.com/
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Edit box changes code

    Post by SLGray 16/4/2014, 21:58

    Do you have it set up where HTML is activate for the whole forum?



    Edit box changes code Slgray10

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


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved Re: Edit box changes code

    Post by boffer10 16/4/2014, 22:38

    Yes, HTML is permitted in posts.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Edit box changes code

    Post by SLGray 16/4/2014, 23:15

    For some reason it is removing this part of the code:
    Code:
    background="http://i62.servimg.com/u/f62/14/92/49/47/interl11.gif"

       
       



    Edit box changes code Slgray10

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


    Male Posts : 2016
    Reputation : 160
    Language : French
    Location : Pizza Hut!

    Solved Re: Edit box changes code

    Post by Pizza Boi 17/4/2014, 01:48

    SLGray wrote:For some reason it is removing this part of the code:
    Code:
    background="http://i62.servimg.com/u/f62/14/92/49/47/interl11.gif"

       
       

    Hi Very Happy

    Following his post, why don't you try implementing it in the style area instead? You can do something like:

    Code:
    style="background-image:url(img link here);"

    If that doesn't work, re-upload the picture in another server.

    Regards,
    Pizza Boi
    avatar
    boffer10
    Forumember


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved Re: Edit box changes code

    Post by boffer10 17/4/2014, 09:33

    It appears that putting background image in style might be the answer for this code. I'll play with the other codes more tonight. Thanks. (Not completely solved yet!)
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: Edit box changes code

    Post by Michael_vx 17/4/2014, 10:53

    the only thing i can say is
    dont preview just send after add the code and make your own change
    and dont worry it will apper right as you want
    Pizza Boi
    Pizza Boi
    Hyperactive


    Male Posts : 2016
    Reputation : 160
    Language : French
    Location : Pizza Hut!

    Solved Re: Edit box changes code

    Post by Pizza Boi 17/4/2014, 10:58

    Hi Very Happy

    Following what he said, just put all the styles in the Css but make sure you declare a name and do something like:

    Code:
    .tdesign {
      Style}

    And this in the post:

    Code:
    [table class="tdesign"][tr][td][/td][/tr][/table]

    Regards,
    Pizza Boi
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Edit box changes code

    Post by Ange Tuteur 17/4/2014, 16:20

    Hello boffer10,

    The background attribute for tables does not seem to be supported anymore by the current editor. As Pizza boi has recommended, you should use the style attribute to write your CSS styles for tables.

    Ex :
    Code:
    [table style="background:url('http://i62.servimg.com/u/f62/14/92/49/47/interl11.gif'); width:400px; margin-left: auto; margin-right: auto;  border:1px solid black;moz-border-radius: 10px; webkit-border-radius: 10px; border-radius: 10px;"][tr][td style="width:10px;"]  [/td][td][img]http://boffers.omgforum.net/users/2011/12/68/81/avatars/2-4.gif[/img][/td][td ][center][color=black][font=verdana]Let me tell you 'bout the old days when...
    we used to do our gardening on the ground![/font][/color][/center][/td][/tr][/table]
    avatar
    boffer10
    Forumember


    Male Posts : 311
    Reputation : 10
    Language : english
    Location : Go Seahawks!

    Solved Re: Edit box changes code

    Post by boffer10 17/4/2014, 19:47

    I've tried the style attribute in several other tables that were doing the same thing, and that appears to be the fix.

    Thanks for the help. This one can be marked solved.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Edit box changes code

    Post by SLGray 17/4/2014, 21:21

    Topic Solved & Archived



    Edit box changes code Slgray10

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