Project

General

Profile

Bug #23250 » rtehtmlarea_bugfix_15203_typo3_4-4.patch

Administrator Admin, 2010-07-23 15:34

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
openContainerWindow: function (buttonId, title, dimensions, url) {
this.dialog = new Ext.Window({
id: this.editor.editorId + buttonId,
title: this.localize(title),
title: this.localize(title) || title,
cls: 'htmlarea-window',
width: dimensions.width,
height: dimensions.height,
typo3/sysext/rtehtmlarea/htmlarea/locallang_dialogs.xml (copie de travail)
<label index="Border thickness:">Border thickness:</label>
<label index="Leave empty for no border">Leave empty for no border</label>
<label index="Insert/Modify Link">Insert/Modify Link</label>
<label index="Insert link">Insert link</label>
<label index="Modify link">Modify link</label>
<label index="URL:">URL:</label>
<label index="link_href_tooltip">Enter the link URL here</label>
<label index="link_url_required">Please enter the URL where this link points to</label>
......
<label index="Cell padding:">Cell padding:</label>
<label index="Space between content and border in cell">Space between content and border in cell</label>
<label index="Insert Image">Insert/Modify Image</label>
<label index="Insert image">Insert image</label>
<label index="Modify image">Modify image</label>
<label index="Image URL:">Image URL:</label>
<label index="Enter the image URL here">Enter the image URL here</label>
<label index="Preview">Preview</label>
typo3/sysext/rtehtmlarea/htmlarea/plugins/ContextMenu/context-menu.js (copie de travail)
* Registering plugin "About" information
*/
var pluginInformation = {
version : '3.0',
version : '3.1',
developer : 'Mihai Bazon & Stanislas Rolland',
developerUrl : 'http://www.sjbr.ca/',
copyrightOwner : 'dynarch.com & Stanislas Rolland',
......
} else if (xtype === 'menuitem') {
var button = this.getButton(menuItem.getItemId());
if (button) {
menuItem.setText(button.tooltip.title);
menuItem.setVisible(!button.disabled);
lastIsButton = lastIsButton || !button.disabled;
} else {
typo3/sysext/rtehtmlarea/htmlarea/plugins/DefaultImage/default-image.js (copie de travail)
* Registering plugin "About" information
*/
var pluginInformation = {
version : '2.0',
version : '2.1',
developer : 'Stanislas Rolland',
developerUrl : 'http://www.sjbr.ca/',
copyrightOwner : 'Stanislas Rolland',
......
// Open dialogue window
this.openDialogue(
buttonId,
'Insert Image',
this.getButton(buttonId).tooltip.title,
this.getWindowDimensions(
{
width: 460,
......
*/
openDialogue: function (buttonId, title, dimensions, tabItems) {
this.dialog = new Ext.Window({
title: this.localize(title),
title: this.localize(title) || title,
cls: 'htmlarea-window',
border: false,
width: dimensions.width,
......
}
});
}
},
/*
* This function gets called when the toolbar is updated
*/
onUpdateToolbar: function (button, mode, selectionEmpty, ancestors) {
if (mode === 'wysiwyg' && this.editor.isEditable() && button.itemId === 'InsertImage' && !button.disabled) {
var image = this.editor.getParentElement();
if (image && !/^img$/i.test(image.nodeName)) {
image = null;
}
if (image) {
button.setTooltip({ title: this.localize('Modify image') });
} else {
button.setTooltip({ title: this.localize('Insert image') });
}
}
}
});
typo3/sysext/rtehtmlarea/htmlarea/plugins/DefaultLink/default-link.js (copie de travail)
* Registering plugin "About" information
*/
var pluginInformation = {
version : '2.0',
version : '2.1',
developer : 'Stanislas Rolland',
developerUrl : 'http://www.sjbr.ca/',
copyrightOwner : 'Stanislas Rolland',
......
// Open dialogue window
this.openDialogue(
buttonId,
'Insert/Modify Link',
this.getButton(buttonId).tooltip.title,
this.getWindowDimensions(
{
width: 470,
......
*/
openDialogue: function (buttonId, title, dimensions) {
this.dialog = new Ext.Window({
title: this.localize(title),
title: this.localize(title) || title,
cls: 'htmlarea-window',
border: false,
width: dimensions.width,
......
onUpdateToolbar: function (button, mode, selectionEmpty, ancestors) {
if (mode === 'wysiwyg' && this.editor.isEditable() && button.itemId === 'CreateLink') {
button.setDisabled(selectionEmpty && !button.isInContext(mode, selectionEmpty, ancestors));
if (!button.disabled) {
var node = this.editor.getParentElement();
var el = HTMLArea.getElementObject(node, 'a');
if (el != null && /^a$/i.test(el.nodeName)) {
node = el;
}
if (node != null && /^a$/i.test(node.nodeName)) {
button.setTooltip({ title: this.localize('Modify link') });
} else {
button.setTooltip({ title: this.localize('Insert link') });
}
}
}
}
});
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Image/typo3image.js (copie de travail)
* Registering plugin "About" information
*/
var pluginInformation = {
version : '2.0',
version : '2.1',
developer : 'Stanislas Rolland',
developerUrl : 'http://www.sjbr.ca/',
copyrightOwner : 'Stanislas Rolland',
......
}
this.openContainerWindow(
buttonId,
buttonId + '-Tooltip',
this.getButton(buttonId).tooltip.title,
this.getWindowDimensions(
{
width: 610,
......
this.editor.iframe.onDrop();
}
this.close();
},
/*
* This function gets called when the toolbar is updated
*/
onUpdateToolbar: function (button, mode, selectionEmpty, ancestors) {
if (mode === 'wysiwyg' && this.editor.isEditable() && button.itemId === 'InsertImage' && !button.disabled) {
var image = this.editor.getParentElement();
if (image && !/^img$/i.test(image.nodeName)) {
image = null;
}
if (image) {
button.setTooltip({ title: this.localize('Modify image') });
} else {
button.setTooltip({ title: this.localize('Insert image') });
}
}
}
});
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js (copie de travail)
* Registering plugin "About" information
*/
var pluginInformation = {
version : '2.0',
version : '2.1',
developer : 'Stanislas Rolland',
developerUrl : 'http://www.sjbr.ca/',
copyrightOwner : 'Stanislas Rolland',
......
}
this.openContainerWindow(
buttonId,
buttonId.toLowerCase(),
this.getButton(buttonId).tooltip.title,
this.getWindowDimensions(
{
width: 550,
......
onUpdateToolbar: function (button, mode, selectionEmpty, ancestors) {
if (mode === 'wysiwyg' && this.editor.isEditable() && button.itemId === 'CreateLink') {
button.setDisabled(selectionEmpty && !button.isInContext(mode, selectionEmpty, ancestors));
if (!button.disabled) {
var node = this.editor.getParentElement();
var el = HTMLArea.getElementObject(node, 'a');
if (el != null && /^a$/i.test(el.nodeName)) {
node = el;
}
if (node != null && /^a$/i.test(node.nodeName)) {
button.setTooltip({ title: this.localize('Modify link') });
} else {
button.setTooltip({ title: this.localize('Insert link') });
}
}
}
}
});
(2-2/2)