-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* DOC-2209: Added docs for the new default_font_size option * DOC-2209: add new default_font_stack file. --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]>
- Loading branch information
1 parent
d86857d
commit 674ae32
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/ROOT/partials/configuration/default_font_stack.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[[default_font_stack]] | ||
== `+default_font_stack+` | ||
|
||
This option changes the default font stack that is considered as the "System Font" stack in the fontfamily toolbar and menu items. It's should be an | ||
array of font family names that matches the default fonts in the the configured xref:add-css-options.adoc#content_css[content_css] CSS file. | ||
|
||
*Type:* `+Array+` | ||
|
||
*Default value:* `[ '-apple-system', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'sans-serif' ]` | ||
|
||
=== Example: using `+default_font_stack+` | ||
|
||
[source,js] | ||
---- | ||
tinymce.init({ | ||
selector: 'textarea', // change this value according to your HTML | ||
toolbar: 'fontsize', | ||
default_font_stack: [ '-apple-system', 'Arial' ] | ||
}); | ||
---- |