Opened 14 years ago

Closed 14 years ago

#353 closed defect (fixed)

Skins for plugins /popups too

Reported by: gocher Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords: Skin
Cc:

Description

I want to insert some style informations for the plugins /popups in the skin.css!
For Example:

.dialog {
  background-color: #EEEEEE;
}
.dialog .title {
  background-image: url(button-background.png);
}  
.dialog .button{
  background-image: url(button-background.png);
}

Where is the place to put this few lines in?

if(editor.config.skin != "") {
  var head = document.getElementsByTagName("head")[0];
  var link = document.createElement("link");
  link.type = "text/css";
  link.href = _editor_url + 'skins/' + editor.config.skin + '/skin.css';
  link.rel = "stylesheet";
  head.appendChild(link);
} 

I think the right place is in popups\popup.js function dlg_init but how can I get the editor.config.skin value?

Change History (4)

comment:1 Changed 14 years ago by gocher

  • Component changed from Documentation to Xinha Core
  • Owner changed from akaEdge to gogo

comment:2 Changed 14 years ago by gogo

Currently I don't think the various popups are going to be co-operative with skins (well, they are just not skinable).

I'd also advise not using that code you pasted ( if(editor.config.skin) ) because when I get around to implementing skin selection it will be as

_editor_skin

because it is a global setting relative to all editors on a page.

comment:3 Changed 14 years ago by gocher

I changed editor.config.skin to _editor_skin and implemented the skin for popups in changeset 239!

I prepared the example skin's and the following plugins already works fine: EditTag?, InsertMarquee?, Equatation, Forms, InsertSmily?, CharacterMap?, FullPage?, InsertAnchor?, Abbreviation, QuickTag?, Template, FindReplace?.

comment:4 Changed 14 years ago by gocher

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.