Vergleich jscripts/editor.js - 1.6.0 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 129Zeile 129
		// An array of video services to be shown (youtube, vimeo, etc) 
this.videos = new Object();
this.videos["dailymotion"] = this.options.lang.video_dailymotion;

		// An array of video services to be shown (youtube, vimeo, etc) 
this.videos = new Object();
this.videos["dailymotion"] = this.options.lang.video_dailymotion;

		this.videos["googlevideo"] = this.options.lang.video_googlevideo;

 
		this.videos["metacafe"] = this.options.lang.video_metacafe;
this.videos["myspacetv"] = this.options.lang.video_myspacetv;
this.videos["vimeo"] = this.options.lang.video_vimeo;

		this.videos["metacafe"] = this.options.lang.video_metacafe;
this.videos["myspacetv"] = this.options.lang.video_myspacetv;
this.videos["vimeo"] = this.options.lang.video_vimeo;

Zeile 439Zeile 438
		var dropdown = this.getElementToolbarItem(mnu);
var label = dropdown.down('.editor_dropdown_label');


		var dropdown = this.getElementToolbarItem(mnu);
var label = dropdown.down('.editor_dropdown_label');


		if(!dropdown.insertText || (mnu.activeItem && mnu.activeItem == element))

		if(!dropdown.insertText || (dropdown.insertText != "video" && mnu.activeItem && mnu.activeItem == element))

			return;

mnu.lastItemValue = element.extra;

			return;

mnu.lastItemValue = element.extra;

		this.insertMyCode(dropdown.insertText, element.extra);

 

if(this.getSelectedText($(this.textarea)))
{
this.setDropDownMenuActiveItem(dropdown, 0);


if(this.getSelectedText($(this.textarea)))
{
this.setDropDownMenuActiveItem(dropdown, 0);

		}

		}

		else
{
if(label)

		else
{
if(label)

Zeile 466Zeile 464
			mnu.activeItem = element;
element.addClassName('editor_dropdown_menu_item_active');
}

			mnu.activeItem = element;
element.addClassName('editor_dropdown_menu_item_active');
}

 

this.insertMyCode(dropdown.insertText, element.extra);

		this.hideOpenDropDownMenu();
Event.stop(e);
},

		this.hideOpenDropDownMenu();
Event.stop(e);
},

Zeile 672Zeile 672
		this.openDropDownMenu.style.display = 'none';
this.getElementToolbarItem(this.openDropDownMenu).removeClassName('editor_dropdown_menu_open');
var dropDown = this.getElementToolbarItem(this.openDropDownMenu);

		this.openDropDownMenu.style.display = 'none';
this.getElementToolbarItem(this.openDropDownMenu).removeClassName('editor_dropdown_menu_open');
var dropDown = this.getElementToolbarItem(this.openDropDownMenu);

 
		this.removeElementState(this.openDropDownMenu.parentNode, 'clicked');

		this.removeElementState(element, 'clicked');
this.openDropDownMenu = null;
Event.stopObserving(document, 'click', this.hideOpenDropDownMenu.bindAsEventListener(this));

		this.removeElementState(element, 'clicked');
this.openDropDownMenu = null;
Event.stopObserving(document, 'click', this.hideOpenDropDownMenu.bindAsEventListener(this));