more fonts in the editor?
2 posters
Page 1 of 1
Re: more fonts in the editor?
Hello Qeemba,
I wrote up a quick draft for you to test. This will allow you to add new fonts to the list of fonts :
Administration panel > Modules > Javascript codes management > create a new script
Title : Your choice
Placement : In all the pages
Paste the code below :
To add new fonts to the list simply write addFont(); between the parenthesis you'll write the font you want in quotes. For example :
I wrote up a quick draft for you to test. This will allow you to add new fonts to the list of fonts :
Administration panel > Modules > Javascript codes management > create a new script
Title : Your choice
Placement : In all the pages
Paste the code below :
- Code:
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Calibri');
addFont('Papyrus');
addFont('Copperplate');
addFont('Avantgarde');
$('.sceditor-font-option.new-font').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[font='+$(this).attr('data-font')+']','[/font]');$('.sceditor-font-picker').remove();e.preventDefault()})
});
function addFont(font){$('.sceditor-font-picker div').append('<a unselectable="on" class="sceditor-font-option new-font" href="#" data-font="'+font+'"><font unselectable="on" face="'+font+'">'+font+'</font></a>')}
})});
To add new fonts to the list simply write addFont(); between the parenthesis you'll write the font you want in quotes. For example :
- Code:
addFont('Baskerville');
Similar topics
» Fonts in editor..
» How does one add new fonts in addition to their old fonts?
» Smileys and Fonts
» Google Web Fonts
» Fonts
» How does one add new fonts in addition to their old fonts?
» Smileys and Fonts
» Google Web Fonts
» Fonts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum