Changeset 239


Ignore:
Timestamp:
06/23/05 07:01:59 (14 years ago)
Author:
gocher
Message:

Ticket #353 make plugins /popups skinable
change editor.config.skin to _editor_skin

Location:
trunk
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/full_example.js

    r238 r239  
    1212 
    1313  var num     = 1; 
    14   var skin    = ""; 
    1514  if(window.parent && window.parent != window) 
    1615  { 
    1716    var f = window.parent.menu.document.forms[0]; 
    1817    _editor_lang = f.lang.value; 
    19     skin = f.skin.value; 
     18    _editor_skin = f.skin.value; 
    2019    num = parseInt(f.num.value); 
    2120    if(isNaN(num)) 
     
    4241    var    config = new HTMLArea.Config(); 
    4342 
    44     if(skin != "") 
    45     { 
    46       config.skin = skin; 
    47     }   
    4843    if(typeof CSS != 'undefined') 
    4944    { 
  • trunk/htmlarea.js

    r238 r239  
    5757} 
    5858 
     59// skin stylesheet to load 
     60  _editor_skin = ""; 
     61 
    5962var __htmlareas = [ ]; 
    6063 
     
    279282  this.flowToolbars = true; 
    280283   
    281   // skin stylesheet to load 
    282   this.skin = ""; 
    283  
    284284  /** CUSTOMIZING THE TOOLBAR 
    285285   * ------------------------- 
     
    11301130  } 
    11311131   
    1132   if(editor.config.skin != "") { 
     1132  if(_editor_skin != "") { 
    11331133    var found=false; 
    11341134    var head = document.getElementsByTagName("head")[0]; 
    11351135    var links = document.getElementsByTagName("link"); 
    11361136    for(var i = 0; i<links.length; i++) { 
    1137       if((links[i].rel == "stylesheet")&&(links[i].href == _editor_url + 'skins/' + editor.config.skin + '/skin.css')) 
     1137      if((links[i].rel == "stylesheet")&&(links[i].href == _editor_url + 'skins/' + _editor_skin + '/skin.css')) 
    11381138        found = true; 
    11391139    } 
     
    11411141      var link = document.createElement("link"); 
    11421142      link.type = "text/css"; 
    1143       link.href = _editor_url + 'skins/' + editor.config.skin + '/skin.css'; 
     1143      link.href = _editor_url + 'skins/' + _editor_skin + '/skin.css'; 
    11441144      link.rel = "stylesheet" 
    11451145      head.appendChild(link); 
  • trunk/plugins/Abbreviation/popups/abbreviation.html

    r134 r239  
    6363 
    6464</head> 
    65 <body onload="Init()"> 
     65<body class="dialog" onload="Init()"> 
    6666<div class="title">Abbreviation</div> 
    6767<form name="form"> 
  • trunk/plugins/CharacterMap/popups/select_character.html

    r109 r239  
    7777</script> 
    7878</head> 
    79 <body style="background: Buttonface; margin: 0px; padding: 0px" onload="Init();self.focus();"> 
     79<body class="dialog" onload="Init();self.focus();"> 
    8080<form method="get" style="margin:2px; padding:2px" onSubmit="Set(document.getElementById('showCharacter').value); return false;"> 
    8181<table border="0" cellspacing="0" cellpadding="4" width="100%"> 
  • trunk/plugins/EditTag/popups/edit_tag.html

    r209 r239  
    3535</head> 
    3636 
    37 <body onLoad="Init();"> 
     37<body class="dialog" onLoad="Init();"> 
    3838<div class="title">Tag Editor</div> 
    3939<textarea name="TAG" id="TAG" cols=22 rows=5 style="width: 100%; height: 315px; margin-top: 8px; margin-bottom: 4px; font-family: monospace; font-size: 11px;"></textarea> 
  • trunk/plugins/Equation/popups/operations.html

    r153 r239  
    5555</head> 
    5656 
    57 <body onload="Init()"> 
     57<body class="dialog" onload="Init()"> 
    5858<div class="title">Select operation</div> 
    5959<table align="center" border="1" cellpadding="2" cellspacing="0"> 
  • trunk/plugins/FindReplace/popups/find_replace.html

    r109 r239  
    102102</style> 
    103103  </head> 
    104   <body onload="Init()"> 
     104  <body class="dialog" onload="Init()"> 
    105105<form action="" method="get"> 
    106106  <div class="title" style="width: 310px">Find and Replace</div> 
  • trunk/plugins/Forms/popups/fieldset.html

    r236 r239  
    3232</head> 
    3333 
    34 <body onload="Init()"> 
     34<body class="dialog" onload="Init()"> 
    3535  <div id="f_type" class="title">Form Element: FIELDSET</div> 
    3636  <form action="" method="get"> 
  • trunk/plugins/Forms/popups/form.html

    r200 r239  
    4949</head> 
    5050 
    51 <body onload="Init()"> 
     51<body class="dialog" onload="Init()"> 
    5252<div class="title">Form</div> 
    5353<form action="" method="get"> 
  • trunk/plugins/Forms/popups/input.html

    r236 r239  
    121121</head> 
    122122 
    123 <body onload="Init()"> 
     123<body class="dialog" onload="Init()"> 
    124124  <div id="f_type" class="title"></div> 
    125125  <form action="" method="get"> 
  • trunk/plugins/Forms/popups/label.html

    r236 r239  
    3939</head> 
    4040 
    41 <body onload="Init()"> 
     41<body class="dialog" onload="Init()"> 
    4242  <div id="f_type" class="title">Form Element: LABEL</div> 
    4343  <form action="" method="get"> 
  • trunk/plugins/Forms/popups/select.html

    r236 r239  
    156156</head> 
    157157 
    158 <body onload="Init()"> 
     158<body class="dialog" onload="Init()"> 
    159159  <div id="f_type" class="title">Form Element: SELECT</div> 
    160160  <form action="" method="get"> 
  • trunk/plugins/Forms/popups/textarea.html

    r236 r239  
    5656</head> 
    5757 
    58 <body onload="Init()"> 
     58<body class="dialog" onload="Init()"> 
    5959<div id="f_type" class="title">Form Element: TEXTAREA</div> 
    6060<form action="" method="get"> 
  • trunk/plugins/FullPage/popups/docprop.html

    r109 r239  
    6969  </head> 
    7070 
    71   <body onload="Init()"> 
     71  <body class="dialog" onload="Init()"> 
    7272 
    7373    <div class="title"><span>Document properties</span></div> 
  • trunk/plugins/InsertAnchor/popups/insert_anchor.html

    r112 r239  
    4242 
    4343<body onload="Init()"> 
    44 <div class="title">Insert Anchor</div> 
     44<div class="dialog" class="title">Insert Anchor</div> 
    4545<form> 
    4646<table border="0" style="width: 100%;"> 
  • trunk/plugins/InsertMarquee/popups/insert_marquee.html

    r210 r239  
    4949 
    5050</head> 
    51 <body onload="Init()"> 
     51<body class="dialog" onload="Init()"> 
    5252<div class="title">Marquee Editor</div> 
    5353<form> 
  • trunk/plugins/InsertSmiley/popups/insertsmiley.html

    r154 r239  
    7474</style> 
    7575</head> 
    76   <body onload="Init()"> 
     76  <body class="dialog" onload="Init()"> 
    7777<form action="" method="get"> 
    7878  <div class="title" style="width: 360px;">Insert Smiley</div> 
  • trunk/plugins/QuickTag/popups/quicktag.html

    r212 r239  
    328328</style> 
    329329</head> 
    330   <body onload="Init()"> 
     330  <body class="dialog" onload="Init()"> 
    331331<form action="" method="get"> 
    332332  <div class="title" style="width: 360px">Quick Tag Editor</div> 
  • trunk/plugins/Template/popups/template.html

    r227 r239  
    2727</head> 
    2828 
    29 <body onload="Init()"> 
     29<body class="dialog" onload="Init()"> 
    3030<div class="title">Insert template</div> 
    3131<form> 
  • trunk/popups/insert_image.html

    r109 r239  
    7272</head> 
    7373 
    74 <body onload="Init()"> 
     74<body class="dialog" onload="Init()"> 
    7575 
    7676<div class="title">Insert Image</div> 
  • trunk/popups/insert_table.html

    r109 r239  
    5252</head> 
    5353 
    54 <body onload="Init()"> 
     54<body class="dialog" onload="Init()"> 
    5555 
    5656<div class="title">Insert Table</div> 
  • trunk/popups/link.html

    r141 r239  
    103103</head> 
    104104 
    105 <body onload="Init()"> 
     105<body class="dialog" onload="Init()"> 
    106106<div class="title">Insert/Modify Link</div> 
    107107<form> 
  • trunk/popups/popup.js

    r177 r239  
    3737 
    3838function __dlg_init(bottom) { 
     39  if(window.opener._editor_skin != "") { 
     40    var head = document.getElementsByTagName("head")[0]; 
     41    var link = document.createElement("link"); 
     42    link.type = "text/css"; 
     43    link.href = window.opener._editor_url + 'skins/' + window.opener._editor_skin + '/skin.css'; 
     44    link.rel = "stylesheet"; 
     45    head.appendChild(link); 
     46  } 
    3947        var body = document.body; 
    4048        var body_height = 0; 
  • trunk/popups/select_color.html

    r214 r239  
    6666</style> 
    6767</head> 
    68 <body onload="Init()"> 
     68<body class="dialog" onload="Init()"> 
    6969 
    7070<form action="#" method="get" onsubmit="Set(document.getElementById('ColorHex').value); return false;"> 
  • trunk/skins/blue-look/skin.css

    r217 r239  
    5757  background-color: #f7f8fd; 
    5858} 
     59.dialog { 
     60  background-color:#f7f8fd; 
     61} 
     62.dialog .title { 
     63  background-image: url(button-background.png); 
     64 
     65.dialog button{ 
     66  background-image: url(button-background.png); 
     67} 
  • trunk/skins/blue-metallic/skin.css

    r225 r239  
    8484  background-color: #f7f8fd; 
    8585} 
     86 
     87.dialog { 
     88  background-color:#f7f8fd; 
     89} 
     90.dialog .title { 
     91  background-image: url(button-background.png); 
     92 
     93.dialog button{ 
     94  background-image: url(button-background.png); 
     95} 
  • trunk/skins/green-look/skin.css

    r217 r239  
    5757  background-color:#f8fdf8; 
    5858} 
     59.dialog { 
     60  background-color:#f8fdf8; 
     61} 
     62.dialog .title { 
     63  background-image: url(button-background.png); 
     64 
     65.dialog button{ 
     66  background-image: url(button-background.png); 
     67} 
  • trunk/skins/inditreuse/skin.css

    r217 r239  
    5757  background-color:#889fc9; 
    5858} 
     59.dialog { 
     60  background-color:#889fc9; 
     61} 
     62.dialog .title { 
     63  background-image: url(button-background.png); 
     64 
     65.dialog button{ 
     66  background-image: url(button-background.png); 
     67} 
  • trunk/skins/xp-blue/skin.css

    r217 r239  
    5757  background-color:#c3daf9; 
    5858} 
     59.dialog { 
     60  background-color:#c3daf9; 
     61} 
     62.dialog .title { 
     63  background-image: url(button-background.png); 
     64 
     65.dialog button{ 
     66  background-image: url(button-background.png); 
     67} 
  • trunk/skins/xp-green/skin.css

    r217 r239  
    5656  background-color:#f2f0e4; 
    5757} 
     58.dialog { 
     59  background-color:#f2f0e4; 
     60} 
     61.dialog .title { 
     62  background-image: url(button-background.png); 
     63 
     64.dialog button{ 
     65  background-image: url(button-background.png); 
     66} 
Note: See TracChangeset for help on using the changeset viewer.