activeButtonsInReadOnly: ['source', 'preview'] is not working. #877
|
Hello, Somebody help me. plz. I want to the buttons such as 'source', 'preview' are working in readonly state. Then, The 'source' button works. How can I make that preview button work in readonly state? |
Replies: 2 comments
|
Does it still reproduce on the current version? If so it's worth tracking as an issue so the preview command is allowed for readonly-active buttons. As a stopgap you can wire a small custom button that opens your own preview (drop |
|
This works on current versions. I just checked your exact config on the current build and the preview dialog opens with the content, so if it no-ops for you you're on an older build from before that option existed — upgrade to the latest and it'll work. |
This works on current versions.
previewruns in readonly because it's in the defaultallowCommandsInReadOnly(['selectall', 'preview', 'print']) — that option was added in the fix for #878, after you reported this. Soreadonly: truetogether withactiveButtonsInReadOnly: ['source', 'preview']opens the preview dialog as expected.I just checked your exact config on the current build and the preview dialog opens with the content, so if it no-ops for you you're on an older build from before that option existed — upgrade to the latest and it'll work.