Javascript code does not work. I have activated it, but does not wor. it was working, but yesterday he did not work.
I have this codes there and none oh them is working $(function(){$(function() {
$('.sceditor-button-size').click(function() {
addSize(8, 'before');
addSize(6, 'before');
addSize(26, 'after');
addSize(28, 'after');
$('.sceditor-fontsize-option.new-size').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[size='+$(this).attr('data-size')+']','[/size]');$('.sceditor-fontsize-picker').remove();e.preventDefault()})
});
function addSize(size, position){
var data = '<a unselectable="on" class="sceditor-fontsize-option new-size" href="#" data-size="'+size+'"><span unselectable="on" style="font-size:'+size+'px;">'+size+'</span></a>';
if (position == 'after' || position == null) $('.sceditor-fontsize-picker div').append(data);
if (position == 'before') $('.sceditor-fontsize-picker div').prepend(data);
}
})});
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Papyrus');
addFont('Brush script MT');
addFont('Dom Casual');
addFont('KR Love Letters');
addFont('CookieMonster');
addFont('Dove Love');
addFont('Forte');
addFont('HeartlandRegular');
addFont('JLR Simple Hearts');
addFont('Jokerman');
addFont('KR Love Letters');
addFont('KR Valentine Heart');
addFont('KR Yours Truly');
addFont('Margarita in August');
addFont('Mark');
addFont('MC Sweetie Hearts');
addFont('Newlywed');
addFont('Caprica Sans IT Personal Use ');
addFont('Kiss Me Quick');
addFont('Starlight');
I have this codes there and none oh them is working $(function(){$(function() {
$('.sceditor-button-size').click(function() {
addSize(8, 'before');
addSize(6, 'before');
addSize(26, 'after');
addSize(28, 'after');
$('.sceditor-fontsize-option.new-size').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[size='+$(this).attr('data-size')+']','[/size]');$('.sceditor-fontsize-picker').remove();e.preventDefault()})
});
function addSize(size, position){
var data = '<a unselectable="on" class="sceditor-fontsize-option new-size" href="#" data-size="'+size+'"><span unselectable="on" style="font-size:'+size+'px;">'+size+'</span></a>';
if (position == 'after' || position == null) $('.sceditor-fontsize-picker div').append(data);
if (position == 'before') $('.sceditor-fontsize-picker div').prepend(data);
}
})});
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Papyrus');
addFont('Brush script MT');
addFont('Dom Casual');
addFont('KR Love Letters');
addFont('CookieMonster');
addFont('Dove Love');
addFont('Forte');
addFont('HeartlandRegular');
addFont('JLR Simple Hearts');
addFont('Jokerman');
addFont('KR Love Letters');
addFont('KR Valentine Heart');
addFont('KR Yours Truly');
addFont('Margarita in August');
addFont('Mark');
addFont('MC Sweetie Hearts');
addFont('Newlywed');
addFont('Caprica Sans IT Personal Use ');
addFont('Kiss Me Quick');
addFont('Starlight');