Zeile 63 | Zeile 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 164 | Zeile 164 |
---|
var author = '', $elm = $(element), $cite = $elm.children('cite').first();
|
var author = '', $elm = $(element), $cite = $elm.children('cite').first();
|
| $cite.html($cite.text());
|
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 195 | Zeile 189 |
---|
}, 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 203 | Zeile 197 |
---|
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, ' ') + '</cite>' + content; data += ' data-author="' + attrs.defaultattr + '"'; }
| content = '<cite>' + attrs.defaultattr.replace(/ /g, ' ') + '</cite>' + content;
|
return '<blockquote' + data + '>' + content + '</blockquote>'; },
| return '<blockquote' + data + '>' + content + '</blockquote>'; },
|