Zeile 47 | Zeile 47 |
---|
// An array of colours to be shown. this.colors = new Array();
|
// An array of colours to be shown. this.colors = new Array();
|
this.colors["white"] = this.options.lang.color_white; this.colors["black"] = this.options.lang.color_black; this.colors["red"] = this.options.lang.color_red; this.colors["yellow"] = this.options.lang.color_yellow; this.colors["pink"] = this.options.lang.color_pink; this.colors["green"] = this.options.lang.color_green; this.colors["orange"] = this.options.lang.color_orange; this.colors["purple"] = this.options.lang.color_purple; this.colors["blue"] = this.options.lang.color_blue; this.colors["beige"] = this.options.lang.color_beige; this.colors["brown"] = this.options.lang.color_brown; this.colors["teal"] = this.options.lang.color_teal; this.colors["navy"] = this.options.lang.color_navy; this.colors["maroon"] = this.options.lang.color_maroon; this.colors["limegreen"] = this.options.lang.color_limegreen;
| this.colors["#ffffff"] = this.options.lang.color_white; this.colors["#000"] = this.options.lang.color_black; this.colors["#FF0000"] = this.options.lang.color_red; this.colors["#FFFF00"] = this.options.lang.color_yellow; this.colors["#FFC0CB"] = this.options.lang.color_pink; this.colors["#008000"] = this.options.lang.color_green; this.colors["#FFA500"] = this.options.lang.color_orange; this.colors["#800080"] = this.options.lang.color_purple; this.colors["#0000FF"] = this.options.lang.color_blue; this.colors["#F5F5DC"] = this.options.lang.color_beige; this.colors["#A52A2A"] = this.options.lang.color_brown; this.colors["#008080"] = this.options.lang.color_teal; this.colors["#000080"] = this.options.lang.color_navy; this.colors["#800000"] = this.options.lang.color_maroon; this.colors["#32CD32"] = this.options.lang.color_limegreen;
|
// Here we get the ID of the textarea we're replacing and store it. this.textarea = textarea;
| // Here we get the ID of the textarea we're replacing and store it. this.textarea = textarea;
|
Zeile 130 | Zeile 130 |
---|
// Create text font/color/size toolbar textFormatting = document.createElement("div"); textFormatting.style.position = "absolute";
|
// Create text font/color/size toolbar textFormatting = document.createElement("div"); textFormatting.style.position = "absolute";
|
| textFormatting.style.width = "100%";
|
if(this.options.rtl == 1) {
| if(this.options.rtl == 1) {
|
Zeile 260 | Zeile 262 |
---|
toolbar2.appendChild(elements); this.insertStandardButton(elements, "list_num", "images/codebuttons/list_num.gif", "list", "1", this.options.lang.title_numlist); this.insertStandardButton(elements, "list_bullet", "images/codebuttons/list_bullet.gif", "list", "", this.options.lang.title_bulletlist);
|
toolbar2.appendChild(elements); this.insertStandardButton(elements, "list_num", "images/codebuttons/list_num.gif", "list", "1", this.options.lang.title_numlist); this.insertStandardButton(elements, "list_bullet", "images/codebuttons/list_bullet.gif", "list", "", this.options.lang.title_bulletlist);
|
this.insertSeparator(elements);
| this.insertSeparator(elements);
|
this.insertStandardButton(elements, "img", "images/codebuttons/image.gif", "image", "", this.options.lang.title_image); this.insertStandardButton(elements, "url", "images/codebuttons/link.gif", "url", "", this.options.lang.title_hyperlink); this.insertStandardButton(elements, "email", "images/codebuttons/email.gif", "email", "", this.options.lang.title_email);
| this.insertStandardButton(elements, "img", "images/codebuttons/image.gif", "image", "", this.options.lang.title_image); this.insertStandardButton(elements, "url", "images/codebuttons/link.gif", "url", "", this.options.lang.title_hyperlink); this.insertStandardButton(elements, "email", "images/codebuttons/email.gif", "email", "", this.options.lang.title_email);
|
Zeile 278 | Zeile 280 |
---|
// Set the width/height of the area subtract = subtract2 = 0;
|
// Set the width/height of the area subtract = subtract2 = 0;
|
if(MyBB.browser == "mozilla")
| if(MyBB.browser != "ie" || (MyBB.browser == "ie" && MyBB.useragent.indexOf('msie 7.') != -1))
|
{ subtract = subtract2 = 8; }
| { subtract = subtract2 = 8; }
|
Zeile 388 | Zeile 390 |
---|
},
toolbarItemHover: function(e)
|
},
toolbarItemHover: function(e)
|
{ element = MyBB.eventElement(e); if(!element)
| { element = MyBB.eventElement(e); if(!element)
|
{ return false; }
| { return false; }
|
Zeile 522 | Zeile 524 |
---|
if(title) { this.performInsert("[url="+url+"]"+title+"[/url]", "", true, false);
|
if(title) { this.performInsert("[url="+url+"]"+title+"[/url]", "", true, false);
|
}
| }
|
else { this.performInsert("[url]"+url+"[/url]", "", true, false);
| else { this.performInsert("[url]"+url+"[/url]", "", true, false);
|
Zeile 531 | Zeile 533 |
---|
},
insertEmail: function()
|
},
insertEmail: function()
|
{
| {
|
selectedText = this.getSelectedText($(this.textarea)); email = prompt(this.options.lang.enter_email, "");
| selectedText = this.getSelectedText($(this.textarea)); email = prompt(this.options.lang.enter_email, "");
|
Zeile 547 | Zeile 549 |
---|
} if(title)
|
} if(title)
|
{
| {
|
this.performInsert("[email="+email+"]"+title+"[/email]", "", true, false);
|
this.performInsert("[email="+email+"]"+title+"[/email]", "", true, false);
|
}
| }
|
else { this.performInsert("[email]"+email+"[/email]", "", true, false); }
|
else { this.performInsert("[email]"+email+"[/email]", "", true, false); }
|
} },
| } },
|
insertIMG: function() {
| insertIMG: function() {
|
Zeile 579 | Zeile 581 |
---|
break; case "image": this.insertIMG();
|
break; case "image": this.insertIMG();
|
break;
| break;
|
case "email": this.insertEmail(); break;
| case "email": this.insertEmail(); break;
|
Zeile 587 | Zeile 589 |
---|
var already_open = false; var no_insert = false; if(extra)
|
var already_open = false; var no_insert = false; if(extra)
|
{
| {
|
var full_tag = code+"_"+extra; } else
| var full_tag = code+"_"+extra; } else
|
Zeile 628 | Zeile 630 |
---|
var do_insert = false; if(extra != "" && extra != "-" && no_insert == false)
|
var do_insert = false; if(extra != "" && extra != "-" && no_insert == false)
|
{
| {
|
start_tag = "["+code+"="+extra+"]"; end_tag = "[/"+code+"]"; do_insert = true;
| start_tag = "["+code+"="+extra+"]"; end_tag = "[/"+code+"]"; do_insert = true;
|
Zeile 653 | Zeile 655 |
---|
} } }
|
} } }
|
| if(this.openTags.length == 0) { $('close_tags').style.visibility = 'hidden'; }
|
},
getSelectedText: function(element)
| },
getSelectedText: function(element)
|