tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

"format block" default values inconsistent with behaviour

Open mwkho opened this issue 2 years ago • 1 comments

In the docs

https://www.tiny.cloud/docs/tinymce/6/user-formatting-options/#block_formats

the default value mentions nothing of the "preformatted" block level

but it shows up in the example given here: https://www.tiny.cloud/docs/tinymce/latest/basic-example/

and also on my editor as well.

However when i set the block_formats value to default value copied from the docs, the 'preformatted' option disappears

Might be an easy fix or missing something?

System: working wtih tinymce 6.6.2 and tinymce-react 4.3.0 nodeJS v20.5.1

mwkho avatar Jan 09 '24 21:01 mwkho

Thank you for the report, the docs are indeed incorrect. The default value does include pre. https://github.com/tinymce/tinymce/blob/c19a0b94382ec10fbc518a832358c71f7dd9ded2/modules/tinymce/src/themes/silver/main/ts/api/Options.ts#L128-L138

TheSpyder avatar Jan 19 '24 00:01 TheSpyder