Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#304 closed defect (fixed)

skin partially loaded if skin.css loaded before htmlarea.js

Reported by: mokhet Owned by: gogo
Priority: normal Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: normal Keywords: skin
Cc:

Description

If the file skin.css (skin style) is loaded before htmlarea.js, it is partially apply.

  • If the line 04 is anywhere before line 09, only partial skin is used
  • If the line 04 is anywhere after line 09, skin is complete
#01: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
#02: <html>
#03: <head>
#04: <link rel="StyleSheet" href="/xinha/skins/blue-look/skin.css" type="text/css">
#05: <script type="text/javascript">
#06: _editor_url = "/xinha/";
#07: _editor_lang = "fr";
#08: </script>
#09: <script type="text/javascript" src="/xinha/htmlarea.js"></script>
#10: <script type="text/javascript">
#11: function xinha_init()
#12: {
#13:   var xinha_config = new HTMLArea.Config();
#14:   var xinha_editors = HTMLArea.makeEditors(['p_ed0'], xinha_config, null);
#15:   HTMLArea.startEditors(xinha_editors);
#16: }
#17: window.onload = xinha_init;
#18: </script>
#19: </head>
#20: <body>
#21: <form>
#22: <textarea id="p_ed0" name="AIERP-article-art_contenu" cols="80" rows="20"></textarea>
#23: </form>
#24: </body>
#25: </html>

Attachments (1)

skin_before_after.png (5.7 KB) - added by mokhet 14 years ago.
before (not good) - after (good)

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by mokhet

before (not good) - after (good)

comment:1 Changed 14 years ago by anonymous

i think the css-file should be loaded by xinha, you don't have to put any style-declarations into your page

comment:2 Changed 14 years ago by gogo

  • Milestone set to Version 1.0
  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to trunk

SInce you can specify _editor_skin = 'skin-name' it is no longer an issue.

comment:3 Changed 14 years ago by mokhet

yes gogo it's no longer an issue, this ticket was open before the _editor_skin appear, i had forget this ticket was open, sry for not closing it earlier :/

Note: See TracTickets for help on using tickets.