"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/bbcodes_sceditor.js" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

bbcodes_sceditor.js  (mybb_1821):bbcodes_sceditor.js  (mybb_1822)
skipping to change at line 34 skipping to change at line 34
'MetaCafe': { 'MetaCafe': {
'match': /metacafe\.com\/watch\/([^\/]+)/, 'match': /metacafe\.com\/watch\/([^\/]+)/,
'url': 'http://www.metacafe.com/embed/', 'url': 'http://www.metacafe.com/embed/',
'html': '<iframe src="{url}" width="440" height=" 248" frameborder=0 data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>' 'html': '<iframe src="{url}" width="440" height=" 248" frameborder=0 data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>'
}, },
'Mixer': { 'Mixer': {
'match': /mixer\.com\/([^\/]+)/, 'match': /mixer\.com\/([^\/]+)/,
'url': '//mixer.com/embed/player/', 'url': '//mixer.com/embed/player/',
'html': '<iframe allowfullscreen="true" src="{url }" width="620" height="349" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc ="{src}"></iframe>' 'html': '<iframe allowfullscreen="true" src="{url }" width="620" height="349" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc ="{src}"></iframe>'
}, },
'Vemio': { 'Vimeo': {
'match': /vimeo.com\/(\d+)($|\/)/, 'match': /vimeo.com\/(\d+)($|\/)/,
'url': '//player.vimeo.com/video/', 'url': '//player.vimeo.com/video/',
'html': '<iframe src="{url}" width="500" height=" 281" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>' 'html': '<iframe src="{url}" width="500" height=" 281" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>'
}, },
'Youtube': { 'Youtube': {
'match': /(?:v=|v\/|embed\/|youtu\.be\/)(.{11})/, 'match': /(?:v=|v\/|embed\/|youtu\.be\/)(.{11})/,
'url': '//www.youtube.com/embed/', 'url': '//www.youtube.com/embed/',
'html': '<iframe width="560" height="315" src="{u rl}" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>' 'html': '<iframe width="560" height="315" src="{u rl}" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>'
}, },
'Twitch': { 'Twitch': {
skipping to change at line 110 skipping to change at line 110
format: '[*]{0}', format: '[*]{0}',
excludeClosing: true excludeClosing: true
}) })
.set('*', { .set('*', {
excludeClosing: true, excludeClosing: true,
isInline: true isInline: true
}); });
$.sceditor.command $.sceditor.command
.set('bulletlist', { .set('bulletlist', {
txtExec: ['[list]\n[*]', '\n[/list]'] txtExec: function (caller, selected) {
var content = '';
$.each(selected.split(/\r?\n/), function () {
content += (content ? '\n' : '') +
'[*]' + this;
});
this.insertText('[list]\n' + content + '\n[/list]
');
}
}) })
.set('orderedlist', { .set('orderedlist', {
txtExec: ['[list=1]\n[*]', '\n[/list]'] txtExec: function (caller, selected) {
var content = '';
$.each(selected.split(/\r?\n/), function () {
content += (content ? '\n' : '') +
'[*]' + this;
});
this.insertText('[list=1]\n' + content + '\n[/lis
t]');
}
}); });
// Update size tag to use xx-small-xx-large instead of 1-7 // Update size tag to use xx-small-xx-large instead of 1-7
$.sceditor.formats.bbcode.set('size', { $.sceditor.formats.bbcode.set('size', {
format: function ($elm, content) { format: function ($elm, content) {
var fontSize, var fontSize,
size = $($elm).attr('size'); size = $($elm).attr('size');
if (!size) { if (!size) {
fontSize = $($elm).css('fontSize'); fontSize = $($elm).css('fontSize');
 End of changes. 3 change blocks. 
3 lines changed or deleted 23 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)