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

queryCommandState('justifyfull') never returns true #4374

Closed
rafdulaf opened this issue May 3, 2018 · 2 comments
Closed

queryCommandState('justifyfull') never returns true #4374

rafdulaf opened this issue May 3, 2018 · 2 comments

Comments

@rafdulaf
Copy link

rafdulaf commented May 3, 2018

This is a reopen of issue 1632 that does still apply in 4.7.11

Description of problem: I am trying to use the TinyMCE API to query the state of the text selection, but I am never able to determine if the text is using the justify format

Steps to reproduce:

Type some text in a paragraph
tinymce.activeEditor.execCommand('justifyfull')
tinymce.activeEditor.queryCommandState('justifyfull')
Expected result: queryCommandState would return true

Actual result: false is returned.

left, center, and right all work as expected

@rafdulaf
Copy link
Author

rafdulaf commented May 3, 2018

Upon my investigations this is due in the FormatRegistry that it is registered for "alignjustify" but requested at "alignfull"

@lnewson
Copy link
Contributor

lnewson commented May 5, 2020

Hi,

I'm unable to reproduce this issue in TinyMCE 4.9.10 and 5.2.2 using the details provided, however looking back at the changelog it appears this issue was fixed in TinyMCE 4.7.13. As such I'm going to close this, however if you're still experiencing issues then let us know and we'll reopen this issue.

Thanks!

@lnewson lnewson closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants