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

"format block" default values inconsistent with behaviour #3050

Open
mwkho opened this issue Jan 9, 2024 · 1 comment
Open

"format block" default values inconsistent with behaviour #3050

mwkho opened this issue Jan 9, 2024 · 1 comment

Comments

@mwkho
Copy link

mwkho commented Jan 9, 2024

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

@TheSpyder
Copy link
Member

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 TheSpyder transferred this issue from tinymce/tinymce Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants