Aleksander Machniak
2012-06-01 3a6ca5b68d090b3637cb925a4442f5990327a2b3
program/js/tiny_mce/themes/advanced/editor_template_src.js
@@ -154,19 +154,27 @@
         t.editor = ed;
         t.url = url;
         t.onResolveName = new tinymce.util.Dispatcher(this);
         s = ed.settings;
         ed.forcedHighContrastMode = ed.settings.detect_highcontrast && t._isHighContrast();
         ed.settings.skin = ed.forcedHighContrastMode ? 'highcontrast' : ed.settings.skin;
         // Setup default buttons
         if (!s.theme_advanced_buttons1) {
            s = extend({
               theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
               theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
               theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap"
            }, s);
         }
         // Default settings
         t.settings = s = extend({
            theme_advanced_path : true,
            theme_advanced_toolbar_location : 'bottom',
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
            theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
            theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap",
            theme_advanced_toolbar_location : 'top',
            theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
            theme_advanced_toolbar_align : "center",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
            theme_advanced_more_colors : 1,
            theme_advanced_row_height : 23,
@@ -176,7 +184,7 @@
            theme_advanced_font_selector : "span",
            theme_advanced_show_current_color: 0,
            readonly : ed.settings.readonly
         }, ed.settings);
         }, s);
         // Setup default font_size_style_values
         if (!s.font_size_style_values)
@@ -1089,19 +1097,17 @@
         p = getParent('A');
         if (c = cm.get('link')) {
            if (!p || !p.name) {
               c.setDisabled(!p && co);
               c.setActive(!!p);
            }
            c.setDisabled((!p && co) || (p && !p.href));
            c.setActive(!!p && (!p.name && !p.id));
         }
         if (c = cm.get('unlink')) {
            c.setDisabled(!p && co);
            c.setActive(!!p && !p.name);
            c.setActive(!!p && !p.name && !p.id);
         }
         if (c = cm.get('anchor')) {
            c.setActive(!co && !!p && p.name);
            c.setActive(!co && !!p && (p.name || (p.id && !p.href)));
         }
         p = getParent('IMG');