Advanced HTML Editor 3 Support Product Page

Solved

CSS Sheet - No Styles in Dropdown

Reported 07 Feb 2012 14:30:55
3
have this problem
07 Feb 2012 14:30:55 Dean Perlberg posted:
I have specified a CSS sheet in the UI (/CSS/Editor.css) and on the site i do not get any of the styles in the dropdown in the editor. There is no text in the drop down and when i try to click on the arrow it does nothing. I have tried numerous CSS sheets to verify it was not a problem with that. I am using IE9 and AHE 3.3.0. I was trying to replace my version 2 of the editor but cannot make the change without the CSS sheets to limit our end users style choices.

Replies

Replied 07 Feb 2012 14:53:28
07 Feb 2012 14:53:28 Teodor Kuduschiev replied:
Please provide a link to your page.
Replied 08 Feb 2012 15:52:14
08 Feb 2012 15:52:14 Åge Fossum replied:
Hi Dean

Got the same problem - in IE 8!
Try Mozilla Firefox and you will get happy

Regards Åge Fossum
Replied 08 Feb 2012 17:27:24
08 Feb 2012 17:27:24 Åge Fossum replied:
- Well, guess I mean more happy...

It's not actually perfect in Firefox either, but there are styles in the dropdown menu.
But selecting a style, makes no change when published

Regards Åge Fossum
Replied 08 Feb 2012 17:42:16
08 Feb 2012 17:42:16 Teodor Kuduschiev replied:
Hello Åge,

Please provide a link where we can check this
Replied 08 Feb 2012 18:31:19
08 Feb 2012 18:31:19 Åge Fossum replied:
Hello Teodor

Thank you!

This is one page: demo.fastname.se/Oppdater/NySide.asp

I can see styles in Firefox, but there is no use using them

I'm leaving work no, so I cant give more answers tonight. Sorry!

I'll be back tomorrow morning.

Regards Åge Fossum
Replied 09 Feb 2012 07:43:22
09 Feb 2012 07:43:22 Teodor Kuduschiev replied:
Hello,

I don't see any css file specified in your editor settings:

<script type="text/javascript">
  // <![CDATA[
 jQuery(document).ready(
   function()
     {
       jQuery("#Tekst").dmxEditor(
         {"FileManager": {"path": "../advhtml_upload", "server": "asp", "allowUpload": true, "allowDownload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "width": 699, "lineBreak": "br", "allowUpload": true, "uploadPath": "../advhtml_upload/Nyheter", "allowResize": true, "resizeMaxWidth": 400, "resizeMaxHeight": 400, "extensions": ["FileManager"]}
       );
     }
 );
  // ]]>
</script>

Replied 09 Feb 2012 08:06:16
09 Feb 2012 08:06:16 Åge Fossum replied:
Strange

It is like this, and I can see the styles in the editor, but they give no effect:

<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#Tekst".dmxEditor(
{"FileManager": {"path": "../advhtml_upload", "server": "asp", "allowUpload": true, "allowDownload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "width": 699, "height": 500, "allowUpload": true, "uploadPath": "../advhtml_upload", "allowResize": true, "resizeMaxWidth": 590, "resizeMaxHeight": 590, "includeCss": "../CSS/naerum.css", "extensions": ["FileManager"]}
);
}
);
// ]]>
</script>
Replied 09 Feb 2012 09:56:39
09 Feb 2012 09:56:39 Teodor Kuduschiev replied:
demo.fastname.se/Oppdater/Default.asp
On this page i don't see any css file included.
Replied 09 Feb 2012 10:00:02
09 Feb 2012 10:00:02 Teodor Kuduschiev replied:
Sorry,

I was looking at wrong page. Now i opened the right one and the styles are working just fine:

Replied 09 Feb 2012 10:13:42
09 Feb 2012 10:13:42 Åge Fossum replied:
Yes, they look ok in the editor (in Firefox), but when published it gives no effect on page.

In IE8 there is no CSS-styles.

Regards Åge Fossum
Replied 09 Feb 2012 10:43:14
09 Feb 2012 10:43:14 Teodor Kuduschiev replied:
This is working in Chrome/FF/IE8/IE9 just fine.
Replied 09 Feb 2012 11:52:25
09 Feb 2012 11:52:25 Åge Fossum replied:
This is the result when I do it...

demo.fastname.se/Default_det.asp?ID=48

Regards Åge Fossum
Replied 09 Feb 2012 12:01:20
09 Feb 2012 12:01:20 Teodor Kuduschiev replied:
This is the code, please check which eleent you are applying classes to...
<span class="Brodtekst"><p class="Brodtekst Tittel01">asdfgasdgasdgasdg</p>
<p>
 <br>
</p>
<p>asdgasdgasdg</p>
<p>
 <br>
</p>
<p class="Brodtekst">asdgasdgasdg</p></span>

Replied 09 Feb 2012 12:16:07
09 Feb 2012 12:16:07 Åge Fossum replied:
Ok, sorry...

But I did it once more, and there is no difference.

demo.fastname.se/Default_det.asp?ID=51

Just typed in the text, and marked the first line, choosed "Tititel01" - and published.

Don't know where this "Brodtekst" (under) came from...

<span xmlns="www.w3.org/1999/xhtml" class="Brodtekst"><p class="Tittel01">asdgasdfh</p>
<p>asfghfadh</p>
<p>adfhadfh</p></span>
Replied 09 Feb 2012 13:05:03
09 Feb 2012 13:05:03 Teodor Kuduschiev replied:
Seeing the code in your other articles like: demo.fastname.se/Default_det.asp?ID=22

I see there is a span tag in every single article. this make me think you are inserting text in a template like:


<td>
<span class="Brodtekst">

YOUR STYLED TEXT GOES HERE

</span>
</td>

Replied 09 Feb 2012 13:23:56
09 Feb 2012 13:23:56 Åge Fossum replied:
Yes, Teodor, you are right.
I did try to remove it, but removing it don't make any difference...
Without it it's just Times...

demo.fastname.se/Default_det.asp?ID=53
Replied 09 Feb 2012 13:52:34
09 Feb 2012 13:52:34 Teodor Kuduschiev replied:
Replied 09 Feb 2012 14:04:17
09 Feb 2012 14:04:17 Åge Fossum replied:
Your "test3" (Tittel01) should 24px bold.
Replied 09 Feb 2012 14:21:42
09 Feb 2012 14:21:42 Teodor Kuduschiev replied:
Tittel01 is not found in any css included in the head tag of your page
Replied 09 Feb 2012 15:13:02
09 Feb 2012 15:13:02 Åge Fossum replied:
Teodor, your right, of course, and now I see...

And I'm just to stupid when doing this work. Just a graphic designer making webpages for my customers

Sorry for all this, Teodor, and thank you!

Best regards
Åge Fossum

Reply to this topic