Vergleich jscripts/bbcodes_sceditor.js - 1.8.0 - 1.8.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 63Zeile 63
			}
})
.set('li', { format: '[*]{0}', excludeClosing: true })

			}
})
.set('li', { format: '[*]{0}', excludeClosing: true })

		.set('*', { excludeClosing: true, isInline: false });

		.set('*', { excludeClosing: true, isInline: true });


$.sceditor.command
.set('bulletlist', { txtExec: ['[list]\n[*]', '\n[/list]'] })


$.sceditor.command
.set('bulletlist', { txtExec: ['[list]\n[*]', '\n[/list]'] })

Zeile 167Zeile 167

if($cite.length === 1 || $elm.data('author'))
{


if($cite.length === 1 || $elm.data('author'))
{

				author = $elm.data('author') || $cite.text();

				author = $cite.text() || $elm.data('author');


$elm.data('author', author);
$cite.remove();

content = this.elementToBbcode($(element));


$elm.data('author', author);
$cite.remove();

content = this.elementToBbcode($(element));

				if($elm.data('pid') || $elm.data('dateline'))
{
author = "='" + author;
}
else
{
author = "=" + author;
}

				author = '=' + author.replace(/(^\s+|\s+$)/g, '');









$elm.prepend($cite);


$elm.prepend($cite);

			}


			}


			if($elm.data('pid'))

			if($elm.data('pid'))

				author += "' pid='" + $elm.data('pid') + "'";


				author += " pid='" + $elm.data('pid') + "'";


			if($elm.data('dateline'))
author += " dateline='" + $elm.data('dateline') + "'";


			if($elm.data('dateline'))
author += " dateline='" + $elm.data('dateline') + "'";


Zeile 195Zeile 188
		},
html: function(token, attrs, content) {
var data = '';

		},
html: function(token, attrs, content) {
var data = '';





			if(attrs.pid)
data += ' data-pid="' + attrs.pid + '"';


			if(attrs.pid)
data += ' data-pid="' + attrs.pid + '"';


Zeile 203Zeile 196
				data += ' data-dateline="' + attrs.dateline + '"';

if(typeof attrs.defaultattr !== "undefined")

				data += ' data-dateline="' + attrs.dateline + '"';

if(typeof attrs.defaultattr !== "undefined")

			{
content = '<cite contenteditable="false">' + attrs.defaultattr.replace(/\s/g, '&nbsp;') + '</cite>' + content;
data += ' data-author="' + attrs.defaultattr + '"';
}

				content = '<cite>' + attrs.defaultattr.replace(/ /g, '&nbsp;') + '</cite>' + content;





return '<blockquote' + data + '>' + content + '</blockquote>';
},


return '<blockquote' + data + '>' + content + '</blockquote>';
},