Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-08-01 09:28:20

steph48
New member
Registered: 2007-08-01
Posts: 2

Style declarations are dropped by Xinha

Hi,

It's very easy to reproduce my problem:
In a Xinha Editor go in html mode and paste this html code:

<html>
  <head>
<style type='text/css'>
.cadre
{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #000000;
    border-color: #FF7200;
    border-style: solid;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}
</style>
  </head>
  <body>
    <table class='cadre'>
      <tr>
        <td>
          lorem
        </td>
      </tr>
      <tr>
        <td >
          ipsum
        </td>
      </tr>
    </table>
  </body>
</html>

Now come back in wysiwyg mode. The style is not applied.
So when you come a second time in html mode, the style declaration has been stripped by Xinha like that:

  <table class="cadre">
    <tbody>
      <tr>
        <td>lorem</td>
      </tr>
      <tr>
        <td>ipsum</td>
      </tr>
    </tbody>
  </table>

I'm using Xinha 0.931 with IE7.
My WebSite is not online so you can't see it.
However, this problem is reproductible on the Xinha Demo site : http://xinha.raimundmeyer.de/x_examples … ample.html

What's my error?

So if it's not a bug is there a mean to apply a style to my html code?

I'm using Xinha editor to write html newsletter which are sent by e-mail.
So when users from my mailing list receive the mail they should see an html mail using style.
Style declarations are not the same for each newsletter.

An other Xinha User seems to encountered that problem at http://xinha.gogo.co.nz/punbb/viewtopic.php?id=1099
So his style declaration was not between <HEAD> markup. That's not my case.

Have I to create a new ticket?

Best regards.

Last edited by steph48 (2007-08-02 03:34:14)

Offline

#2 2007-08-02 11:23:28

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Style declarations are dropped by Xinha

steph48 wrote:

Hi,

It's very easy to reproduce my problem:

Hi,
it's also very easy to solve smile

By default, Xinha only edits the body part of the page. Please set

xinha_config.fullPage = true;

in your config

Offline

#3 2007-08-02 12:18:52

steph48
New member
Registered: 2007-08-01
Posts: 2

Re: Style declarations are dropped by Xinha

Hi,

It's OK, the problem is solved, thanks a lot!!!! smile
It's real that it was really easy to solve... before your response I began to modify XinhaCore..... sad

I'm sorry but I didn't seen that information in Xinha doc...

I hope this post will be usefull for other users.

Bye

Offline

Board footer

Powered by FluxBB