Zeile 129 | Zeile 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 439 | Zeile 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 466 | Zeile 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 526 | Zeile 526 |
---|
createDropDownMenu: function(options) { var dropdown = document.createElement('div');
|
createDropDownMenu: function(options) { var dropdown = document.createElement('div');
|
dropdown.itemType = options.type;
| dropdown.elementType = options.type;
|
if(options.image || options.sprite) dropdown.className = 'toolbar_dropdown_image'; else
| if(options.image || options.sprite) dropdown.className = 'toolbar_dropdown_image'; else
|
Zeile 631 | Zeile 631 |
---|
element = Event.element(e); if(!element) return;
|
element = Event.element(e); if(!element) return;
|
if(!element.itemType)
| if(!element.elementType)
|
element = this.getElementToolbarItem(element); var mnu = $(element).down('ul');
| element = this.getElementToolbarItem(element); var mnu = $(element).down('ul');
|
Zeile 672 | Zeile 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));
|
Zeile 771 | Zeile 772 |
---|
toolbar.lastChild.previousSibling.className += ' toolbar_button_group_last'; } var separator = document.createElement("span");
|
toolbar.lastChild.previousSibling.className += ' toolbar_button_group_last'; } var separator = document.createElement("span");
|
separator.itemType = options.type;
| separator.elementType = options.type;
|
separator.className = "toolbar_sep"; toolbar.insertBefore(separator, toolbar.lastChild); }
| separator.className = "toolbar_sep"; toolbar.insertBefore(separator, toolbar.lastChild); }
|
Zeile 780 | Zeile 781 |
---|
createToolbarButton: function(options) { var button = document.createElement('span');
|
createToolbarButton: function(options) { var button = document.createElement('span');
|
button.itemType = options.type;
| button.elementType = options.type;
|
button.id = 'editor_item_'+options.name; if(typeof(options.title) != 'undefined') {
| button.id = 'editor_item_'+options.name; if(typeof(options.title) != 'undefined') {
|
Zeile 920 | Zeile 921 |
---|
if(!element) return false;
|
if(!element) return false;
|
if(!element.itemType)
| if(!element.elementType)
|
element = this.getElementToolbarItem(element);
if(element.disabled)
| element = this.getElementToolbarItem(element);
if(element.disabled)
|
Zeile 952 | Zeile 953 |
---|
if(!element) return false;
|
if(!element) return false;
|
if(!element.itemType)
| if(!element.elementType)
|
element = this.getElementToolbarItem(element);
if(element.disabled)
| element = this.getElementToolbarItem(element);
if(element.disabled)
|
Zeile 969 | Zeile 970 |
---|
if(!element) return false;
|
if(!element) return false;
|
if(!element.itemType)
| if(!element.elementType)
|
element = this.getElementToolbarItem(element);
if(element.disabled)
| element = this.getElementToolbarItem(element);
if(element.disabled)
|
Zeile 1171 | Zeile 1172 |
---|
this.removeElementState(elem, 'clicked'); }
|
this.removeElementState(elem, 'clicked'); }
|
if(elem && (elem.itemType == "dropdown" || elem.dropdown || elem.menu))
| if(elem && (elem.elementType == "dropdown" || elem.dropdown || elem.menu))
|
{ this.setDropDownMenuActiveItem(elem, 0); }
| { this.setDropDownMenuActiveItem(elem, 0); }
|
Zeile 1382 | Zeile 1383 |
---|
} if(tag) {
|
} if(tag) {
|
if(tag.itemType == "dropdown" || tag.dropdown || tag.menu)
| if(tag.elementType == "dropdown" || tag.dropdown || tag.menu)
|
{ this.setDropDownMenuActiveItem(tag, 0); }
| { this.setDropDownMenuActiveItem(tag, 0); }
|