Skip to content

Commit

Permalink
DOC-2209: Added docs for the new default_font_size option (#2993)
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
spocke and kemister85 authored Nov 21, 2023
1 parent d86857d commit 674ae32
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/

### Unreleased

- DOC-2209: add new default_font_stack `user-formatting-option.adoc` file.

### 2023-11-15

Expand Down
2 changes: 2 additions & 0 deletions modules/ROOT/pages/user-formatting-options.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

include::partial$configuration/block_formats.adoc[]

include::partial$configuration/default_font_stack.adoc[]

include::partial$configuration/font_family_formats.adoc[]

include::partial$configuration/font_size_formats.adoc[]
Expand Down
20 changes: 20 additions & 0 deletions modules/ROOT/partials/configuration/default_font_stack.adoc
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' ]
});
----

0 comments on commit 674ae32

Please sign in to comment.