Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom fonts #1

Open
riksnelders opened this issue Feb 26, 2018 · 1 comment
Open

custom fonts #1

riksnelders opened this issue Feb 26, 2018 · 1 comment
Labels
good first issue Good for newcomers

Comments

@riksnelders
Copy link

Custom fonts possible or not documentated?

@m3esma
Copy link
Owner

m3esma commented Feb 26, 2018

Hi, Thanks for question.
You can put any custom option in myOtherOptions variable.

For custom font you need something like this:

myToolbar1: 'etc... fontselect fontsizeselect etc...',
myOtherOptions : {
	// etc... ,

	font_formats: 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n',
	fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt'

	//, content_css: 'css/tinymce-content.css' //Specify a custom CSS for editable area 

	//, etc...
}

TinyMCE font-formats
TinyMCE fontsize_formats
TinyMCE content_css

If there was still a problem or question, please ask it. I will be glad. 😄
Good luck.

@m3esma m3esma added the good first issue Good for newcomers label Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants