Project

General

Profile

Feature #19276 ยป rtehtmlarea_feature_9276.patch

Administrator Admin, 2008-09-02 23:35

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockStyle/block-style.js (copie de travail)
}
var allowedClasses;
for (var tagName in this.tags) {
if (this.tags[tagName].allowedClasses) {
allowedClasses = this.tags[tagName].allowedClasses.trim().split(",");
for (var cssClass in allowedClasses) {
if (allowedClasses.hasOwnProperty(cssClass)) {
allowedClasses[cssClass] = allowedClasses[cssClass].trim();
if (this.tags.hasOwnProperty(tagName)) {
if (this.tags[tagName].allowedClasses) {
allowedClasses = this.tags[tagName].allowedClasses.trim().split(",");
for (var cssClass in allowedClasses) {
if (allowedClasses.hasOwnProperty(cssClass)) {
allowedClasses[cssClass] = allowedClasses[cssClass].trim().replace(/\*/g, ".*");
}
}
this.tags[tagName].allowedClasses = new RegExp( "^(" + allowedClasses.join("|") + ")$", "i");
}
this.tags[tagName].allowedClasses = new RegExp( "^(" + allowedClasses.join("|") + ")$", "i");
}
}
this.showTagFreeClasses = this.pageTSconfiguration.showTagFreeClasses || this.editorConfiguration.showTagFreeClasses;
typo3/sysext/rtehtmlarea/htmlarea/plugins/TextStyle/text-style.js (copie de travail)
}
var allowedClasses;
for (var tagName in this.tags) {
if (this.tags[tagName].allowedClasses) {
allowedClasses = this.tags[tagName].allowedClasses.trim().split(",");
for (var cssClass in allowedClasses) {
if (allowedClasses.hasOwnProperty(cssClass)) {
allowedClasses[cssClass] = allowedClasses[cssClass].trim();
if (this.tags.hasOwnProperty(tagName)) {
if (this.tags[tagName].allowedClasses) {
allowedClasses = this.tags[tagName].allowedClasses.trim().split(",");
for (var cssClass in allowedClasses) {
if (allowedClasses.hasOwnProperty(cssClass)) {
allowedClasses[cssClass] = allowedClasses[cssClass].trim().replace(/\*/g, ".*");
}
}
this.tags[tagName].allowedClasses = new RegExp( "^(" + allowedClasses.join("|") + ")$", "i");
}
this.tags[tagName].allowedClasses = new RegExp( "^(" + allowedClasses.join("|") + ")$", "i");
}
}
this.showTagFreeClasses = this.pageTSconfiguration.showTagFreeClasses || this.editorConfiguration.showTagFreeClasses;
    (1-1/1)