Fonts in editor..
3 posters
Page 1 of 1
Fonts in editor..
Hi, I have been trying to find where the fonts for the posts editor are located.
I'd like to add in a couple of my own; like - Bookman Old Style, Candara.
Is this possible to do?
Last edited by faerycharmjulie on April 7th 2021, 3:50 pm; edited 1 time in total
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Hello @faerycharmjulie
Sadly there is not a way to do this by your ACP unless you use a JavaScript
Here is a really good forum post you can follow that will help you.
I use this my self.
https://fmdesign.forumotion.com/t220-add-more-font-choices-to-the-editor.
Any problems please let me know here as the forum is no longer used for support.
Regards.
Ape.
Sadly there is not a way to do this by your ACP unless you use a JavaScript
Here is a really good forum post you can follow that will help you.
I use this my self.
https://fmdesign.forumotion.com/t220-add-more-font-choices-to-the-editor.
Any problems please let me know here as the forum is no longer used for support.
Regards.
Ape.
Re: Fonts in editor..
Thanks so much @Ape
I will go check that out.
I will go check that out.
faerycharmjulie wrote:
Hi, I have been trying to find where the fonts for the posts editor are located.
I'd like to add in a couple of my own; like - Bookman Old Style, Candara.
Is this possible to do?
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Just to let you know that some font's will only work if you have them installed on your Computer, laptop, Tablet, phone, so it is best to use a google site to find your fonts and are basic to everyone.
Re: Fonts in editor..
Thanks for the help @Ape it was worth a try. I didn't get it to work.
It sure seemed simple enough.
I got the scrollbar to work on the font menu.
But when I select the fonts they don't do anything.
And a couple I added in myself don't show at all.
It sure seemed simple enough.
I got the scrollbar to work on the font menu.
But when I select the fonts they don't do anything.
And a couple I added in myself don't show at all.
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Please post the JavaScript you used on your forum. Please post it in the code tags.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Fonts in editor..
faerycharmjulie wrote:Thanks for the help @Ape it was worth a try. I didn't get it to work.
It sure seemed simple enough.
I got the scrollbar to work on the font menu.
But when I select the fonts they don't do anything.
And a couple I added in myself don't show at all.
Please give me your JavaScript you used and the names of the font's you want and I will take a look for you.
It maybe the font you are using is not a basic font
I use this site for my font's as they should all be installed on basic computers already
https://fonts.google.com
Re: Fonts in editor..
- Code:
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Calibri');
addFont('Papyrus');
addFont('Avantgarde');
addfont('Bookman Old Style');
addfont('Candara');
addFont('Baskerville');
$('.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>')}
})});
I really want Bookman Old Style so that I don't have to edit my code in my posts to use it.
I don't care about Baskerville. I was just seeing if it would show up. Only Calibri, papyrus and avantgarde show up. But they don't actually work when selected...
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Do you have those fonts installed on your computer?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Fonts in editor..
Ange Tuteur wrote:Attention : If the font is not installed on a users computer they will not see the font you added to the Editor when used !
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Fonts in editor..
Avantgarde is the only one I don't have.
I know that people have to have a font installed on their
own system to see it. I just want to have the choice of using it.
Most of those are pretty default aren't they?
Bookman Old Style has always been on all of my computers over the last 20 years.
I know that people have to have a font installed on their
own system to see it. I just want to have the choice of using it.
Most of those are pretty default aren't they?
Bookman Old Style has always been on all of my computers over the last 20 years.
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Okay I see the problem
The following Font's are not working
I made a small change to your code Give it a try Note: Candara is a light Grey so this may not work if not installed on your computer.
The following Font's are not working
- Code:
addfont('Bookman Old Style');
I made a small change to your code Give it a try Note: Candara is a light Grey so this may not work if not installed on your computer.
- Code:
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Calibri');
addFont('Papyrus');
addFont('Avantgarde');
addFont('Bookman');
addFont('Candara');
addFont('Baskerville');
$('.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>')}
})});
TonnyKamper likes this post
Re: Fonts in editor..
Thanks so much for your time. I have it working on my site now.
faerycharmjulie- New Member
- Posts : 16
Reputation : 1
Language : English
Location : Wyoming
Re: Fonts in editor..
Not a problem I'm glad it's working for you
Have a great day.
Ape.
Have a great day.
Ape.
Problem solved & topic archived.
|
Similar topics
» more fonts in the editor?
» How does one add new fonts in addition to their old fonts?
» The Editor Tools Are Missing From The Full Message Editor!
» Adding new fonts
» Smileys and Fonts
» How does one add new fonts in addition to their old fonts?
» The Editor Tools Are Missing From The Full Message Editor!
» Adding new fonts
» Smileys and Fonts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum