Vergleich jscripts/editor.js - 1.2.7 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 41Zeile 41
		this.sizes["xx-small"] = this.options.lang.size_xx_small;
this.sizes["x-small"] = this.options.lang.size_x_small;
this.sizes["small"] = this.options.lang.size_small;

		this.sizes["xx-small"] = this.options.lang.size_xx_small;
this.sizes["x-small"] = this.options.lang.size_x_small;
this.sizes["small"] = this.options.lang.size_small;

		this.sizes["medium"] = this.options.lang.size_medium


		this.sizes["medium"] = this.options.lang.size_medium;
this.sizes["large"] = this.options.lang.size_large;

		this.sizes["x-large"] = this.options.lang.size_x_large;
this.sizes["xx-large"] = this.options.lang.size_xx_large;

// An array of colours to be shown.
this.colors = new Array();

		this.sizes["x-large"] = this.options.lang.size_x_large;
this.sizes["xx-large"] = this.options.lang.size_xx_large;

// An array of colours to be shown.
this.colors = new Array();

        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;


		this.colors["#ffffff"] = this.options.lang.color_white;
this.colors["#000000"] = 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 104Zeile 105
		
if(this.options && this.options.height)
{

		
if(this.options && this.options.height)
{

			w = this.options.height;

			h = this.options.height;

		}
else if(oldTextarea.style.height)
{

		}
else if(oldTextarea.style.height)
{

Zeile 251Zeile 252
		elements.style.position = "absolute";

if(this.options.rtl == 1)

		elements.style.position = "absolute";

if(this.options.rtl == 1)

		{

		{

			elements.style.left = 0;
}
else

			elements.style.left = 0;
}
else

Zeile 441Zeile 442
	changeSize: function(e)
{
element = MyBB.eventElement(e);

	changeSize: function(e)
{
element = MyBB.eventElement(e);

		
if(!element)
{
return false;
}

this.insertMyCode("size", element.options[element.selectedIndex].value);

if(this.getSelectedText($(this.textarea)))
{
element.selectedIndex = 0;
}
},

changeColor: function(e)
{
element = MyBB.eventElement(e);

		
if(!element)
{
return false;
}

this.insertMyCode("size", element.options[element.selectedIndex].value);

if(this.getSelectedText($(this.textarea)))
{
element.selectedIndex = 0;
}
},

changeColor: function(e)
{
element = MyBB.eventElement(e);

		
if(!element)
{

		
if(!element)
{

Zeile 613Zeile 614
							{
$(this.openTags[i]).className = "toolbar_normal";
}

							{
$(this.openTags[i]).className = "toolbar_normal";
}

 

if($(exploded_tag[0]) && $(exploded_tag[0]).type == "select-one")
{
$(exploded_tag[0]).selectedIndex = 0;
}

							
if(this.openTags[i] == full_tag)
{

							
if(this.openTags[i] == full_tag)
{

Zeile 653Zeile 659
					{
DomLib.removeClass($(full_tag), "toolbar_clicked");
}

					{
DomLib.removeClass($(full_tag), "toolbar_clicked");
}

 
					else if($(code) && $(code).type == "select-one")
{
$(code).selectedIndex = 0;
}


				}
}


				}
}


Zeile 805Zeile 816
				tag = MyBB.arrayPop(this.openTags);
exploded_tag = tag.split("_");
this.performInsert("[/"+exploded_tag[0]+"]", "", false);

				tag = MyBB.arrayPop(this.openTags);
exploded_tag = tag.split("_");
this.performInsert("[/"+exploded_tag[0]+"]", "", false);

				

 
				if($(exploded_tag[0]))
{
tag = $(exploded_tag[0]);

				if($(exploded_tag[0]))
{
tag = $(exploded_tag[0]);

 
				}
if($(tag))
{

					if(tag.type == "select-one")
{
tag.selectedIndex = 0;

					if(tag.type == "select-one")
{
tag.selectedIndex = 0;

Zeile 818Zeile 831
						DomLib.removeClass($(tag), "toolbar_clicked");
}
}

						DomLib.removeClass($(tag), "toolbar_clicked");
}
}

 
				

			}
}
$(this.textarea).focus();

			}
}
$(this.textarea).focus();