The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Edit box changes code

View previous topic View next topic Go down

Solved Edit box changes code

Post by boffer10 on April 17th 2014, 4:46 am

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:

Code:
[table width="400" background="http://i62.servimg.com/u/f62/14/92/49/47/interl11.gif" style="margin-left: auto; margin-right: auto; border:1px solid black;moz-border-radius: 10px; webkit-border-radius: 10px; border-radius: 10px;"][tr][td width=10] [/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]

The first time I hit preview:
This is what it should look like:

The second time I hit preview:
The table background image URL is gone:

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/

boffer10
Forumember

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

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: Edit box changes code

Post by SLGray on April 17th 2014, 4:58 am

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


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Edit box changes code

Post by boffer10 on April 17th 2014, 5:38 am

Yes, HTML is permitted in posts.

boffer10
Forumember

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

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: Edit box changes code

Post by SLGray on April 17th 2014, 6:15 am

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"





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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Edit box changes code

Post by Pizza Boi on April 17th 2014, 8:48 am

@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

Pizza Boi
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Edit box changes code

Post by boffer10 on April 17th 2014, 4:33 pm

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!)

boffer10
Forumember

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

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: Edit box changes code

Post by Michael_vx on April 17th 2014, 5:53 pm

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

Michael_vx
Forumember

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

Back to top Go down

Solved Re: Edit box changes code

Post by Pizza Boi on April 17th 2014, 5:58 pm

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

Pizza Boi
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Edit box changes code

Post by Ange Tuteur on April 17th 2014, 11:20 pm

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]

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Edit box changes code

Post by boffer10 on April 18th 2014, 2:47 am

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.

boffer10
Forumember

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

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: Edit box changes code

Post by SLGray on April 18th 2014, 4:21 am

Topic Solved & Archived


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum