|
@@ -505,8 +505,8 @@
|
|
|
|
|
|
var oldText, replaceBBCodeFunc,
|
|
|
// Previous bbcodeRegex = /\[([^\[\s=]*?)(?:([\s=][^\[]*?))?\]((?:[\s\S(?!=\[\\\1)](?!\[\1))*?)\[\/(\1)\]/g,
|
|
|
- bbcodeRegex = /\[([^\[\s=]+)(?:([\s=][^\[\]]+))?\]((?:[\s\S](?!\[\1))*?)\[\/(\1)\]/g,
|
|
|
- atribsRegex = /(\S+)=((?:(?:(["'])(?:\\\3|[^\3])*?\3))|(?:[^'"\s]+))/g;
|
|
|
+ bbcodeRegex = /\[([^\[\s=]+)(?:([\s=][^\[\]]+))?\]((?:[\s\S](?!\[\1))*?)\[\/(\1)\]/gi,
|
|
|
+ atribsRegex = /(\S+)=((?:(?:(["'])(?:\\\3|[^\3])*?\3))|(?:[^'"\s]+))/gi;
|
|
|
|
|
|
replaceBBCodeFunc = function(str, bbcode, attrs, content)
|
|
|
{
|
|
@@ -1080,26 +1080,26 @@
|
|
|
return '[iurl=' + decodeURI(element.attr('href')) + ']' + content + '[/iurl]';
|
|
|
},
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
- attrs.defaultAttr = content;
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
+ attrs.defaultattr = content;
|
|
|
|
|
|
- return '<a target="_blank" href="' + encodeURI(attrs.defaultAttr) + '">' + content + '</a>';
|
|
|
+ return '<a target="_blank" href="' + encodeURI(attrs.defaultattr) + '">' + content + '</a>';
|
|
|
}
|
|
|
},
|
|
|
iurl: {
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
- attrs.defaultAttr = content;
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
+ attrs.defaultattr = content;
|
|
|
|
|
|
- return '<a href="' + encodeURI(attrs.defaultAttr) + '">' + content + '</a>';
|
|
|
+ return '<a href="' + encodeURI(attrs.defaultattr) + '">' + content + '</a>';
|
|
|
}
|
|
|
},
|
|
|
ftp: {
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
- attrs.defaultAttr = content;
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
+ attrs.defaultattr = content;
|
|
|
|
|
|
- return '<a target="_blank" href="' + encodeURI(attrs.defaultAttr) + '">' + content + '</a>';
|
|
|
+ return '<a target="_blank" href="' + encodeURI(attrs.defaultattr) + '">' + content + '</a>';
|
|
|
}
|
|
|
},
|
|
|
// END_COMMAND
|
|
@@ -1217,8 +1217,8 @@
|
|
|
},
|
|
|
html: function(element, attrs, content) {
|
|
|
var from = '';
|
|
|
- if(typeof attrs.defaultAttr !== "undefined")
|
|
|
- from = '<cite>' + attrs.defaultAttr + '</cite>';
|
|
|
+ if(typeof attrs.defaultattr !== "undefined")
|
|
|
+ from = '<cite>' + attrs.defaultattr + '</cite>';
|
|
|
|
|
|
return '<code>' + from + content.replace('[', '[') + '</code>'
|
|
|
}
|
|
@@ -1325,10 +1325,10 @@
|
|
|
return '[abbr=' + element.attr('title') + ']' + content + '[/abbr]';
|
|
|
},
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
return content;
|
|
|
|
|
|
- return '<abbr title="' + attrs.defaultAttr + '">' + content + '</abbr>';
|
|
|
+ return '<abbr title="' + attrs.defaultattr + '">' + content + '</abbr>';
|
|
|
}
|
|
|
},
|
|
|
acronym: {
|
|
@@ -1341,10 +1341,10 @@
|
|
|
return '[acronym=' + element.attr('title') + ']' + content + '[/acronym]';
|
|
|
},
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
return content;
|
|
|
|
|
|
- return '<acronym title="' + attrs.defaultAttr + '">' + content + '</acronym>';
|
|
|
+ return '<acronym title="' + attrs.defaultattr + '">' + content + '</acronym>';
|
|
|
}
|
|
|
},
|
|
|
bdo: {
|
|
@@ -1357,12 +1357,12 @@
|
|
|
return '[bdo=' + element.attr('dir') + ']' + content + '[/bdo]';
|
|
|
},
|
|
|
html: function(element, attrs, content) {
|
|
|
- if(typeof attrs.defaultAttr === "undefined" || attrs.defaultAttr.length === 0)
|
|
|
+ if(typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
|
|
|
return content;
|
|
|
- if (attrs.defaultAttr != 'rtl' && attrs.defaultAttr != 'ltr')
|
|
|
- return '[bdo=' + attrs.defaultAttr + ']' + content + '[/bdo]';
|
|
|
+ if (attrs.defaultattr != 'rtl' && attrs.defaultattr != 'ltr')
|
|
|
+ return '[bdo=' + attrs.defaultattr + ']' + content + '[/bdo]';
|
|
|
|
|
|
- return '<bdo dir="' + attrs.defaultAttr + '">' + content + '</bdo>';
|
|
|
+ return '<bdo dir="' + attrs.defaultattr + '">' + content + '</bdo>';
|
|
|
}
|
|
|
},
|
|
|
tt: {
|