NO show Switch markdown and WYSIWYG in editor #3362

Closed
opened 2026-02-05 06:29:33 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @csongs on GitHub (Nov 24, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

bookstack version is v22.10.2

non admin user can not switch markdown and WYSIWYG in editor

non admin user:
image

admin user:
image

Exact BookStack Version

v22.10.2

Log Content

No response

PHP Version

No response

Hosting Environment

# Environment
APP_ENV=production
APP_DEBUG=XXXXX
APP_KEY=

# The below url has to be set if using social auth options
# or if you are not using BookStack at the root path of your domain.
APP_URL=XXXXX

# Application timezone
# Used where dates are displayed such as on exported content.
# Valid timezone values can be found here: https://www.php.net/manual/en/timezones.php
APP_TIMEZONE="Asia/Taipei"

# Database details
DB_HOST=XXXXX
DB_DATABASE=XXXXX
DB_USERNAME=XXXXX
DB_PASSWORD=XXXXX

# Cache and session
CACHE_DRIVER=file
SESSION_DRIVER=file
# If using Memcached, comment the above and uncomment these
#CACHE_DRIVER=memcached
#SESSION_DRIVER=memcached
QUEUE_DRIVER=sync

# Memcached settings
# If using a UNIX socket path for the host, set the port to 0
# This follows the following format: HOST:PORT:WEIGHT
# For multiple servers separate with a comma
MEMCACHED_SERVERS=127.0.0.1:11211:100

# Storage
STORAGE_TYPE=local_secure

# Storage URL
# Used to prefix image urls for when using custom domains/cdns
STORAGE_URL=false

# PDF Rendering
#WKHTMLTOPDF=/home/user/bins/wkhtmltopdf

# General auth
AUTH_METHOD=${AUTH_METHOD:-standard}

# External services such as Gravatar
DISABLE_EXTERNAL_SERVICES=false

# LDAP Settings
LDAP_SERVER=XXXXX
LDAP_BASE_DN=XXXXX
LDAP_DN=XXXXX
LDAP_PASS="XXXXX"
LDAP_USER_FILTER=XXXXXX
LDAP_VERSION=3
LDAP_OPT_REFERRALS=0
LDAP_ID_ATTRIBUTE=BIN;objectGUID
LDAP_EMAIL_ATTRIBUTE=mail
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
## If you need to allow untrusted LDAPS certificates, add the below and uncomment (remove the #)
## Only set this option if debugging or you're absolutely sure it's required for your setup.
LDAP_TLS_INSECURE=true
## Enable LDAP group sync, Set to 'true' to enable.
LDAP_USER_TO_GROUPS=true
## LDAP user attribute containing groups, Defaults to 'memberOf'.
LDAP_GROUP_ATTRIBUTE="memberOf"
## Remove users from roles that don't match LDAP groups.
LDAP_REMOVE_FROM_GROUPS=false


# Mail settings
MAIL_DRIVER=smtp
MAIL_HOST=XXXXX
MAIL_PORT=25
#MAIL_USERNAME=null
#MAIL_PASSWORD=null
#MAIL_ENCRYPTION=null
# URL used for social login redirects, NO TRAILING SLASH

# Default item listing view
# Used for public visitors and user's without a preference
# Can be 'list' or 'grid'
APP_VIEWS_BOOKS=list
APP_VIEWS_BOOKSHELVES=list
Originally created by @csongs on GitHub (Nov 24, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario bookstack version is `v22.10.2` non admin user can not switch markdown and WYSIWYG in editor non admin user: ![image](https://user-images.githubusercontent.com/14192944/203703221-d212328b-4bd9-4d4c-accd-3622a3351880.png) admin user: ![image](https://user-images.githubusercontent.com/14192944/203703513-48db6f11-83b2-410f-879f-4feaa29c5440.png) ### Exact BookStack Version v22.10.2 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment <details> ``` # Environment APP_ENV=production APP_DEBUG=XXXXX APP_KEY= # The below url has to be set if using social auth options # or if you are not using BookStack at the root path of your domain. APP_URL=XXXXX # Application timezone # Used where dates are displayed such as on exported content. # Valid timezone values can be found here: https://www.php.net/manual/en/timezones.php APP_TIMEZONE="Asia/Taipei" # Database details DB_HOST=XXXXX DB_DATABASE=XXXXX DB_USERNAME=XXXXX DB_PASSWORD=XXXXX # Cache and session CACHE_DRIVER=file SESSION_DRIVER=file # If using Memcached, comment the above and uncomment these #CACHE_DRIVER=memcached #SESSION_DRIVER=memcached QUEUE_DRIVER=sync # Memcached settings # If using a UNIX socket path for the host, set the port to 0 # This follows the following format: HOST:PORT:WEIGHT # For multiple servers separate with a comma MEMCACHED_SERVERS=127.0.0.1:11211:100 # Storage STORAGE_TYPE=local_secure # Storage URL # Used to prefix image urls for when using custom domains/cdns STORAGE_URL=false # PDF Rendering #WKHTMLTOPDF=/home/user/bins/wkhtmltopdf # General auth AUTH_METHOD=${AUTH_METHOD:-standard} # External services such as Gravatar DISABLE_EXTERNAL_SERVICES=false # LDAP Settings LDAP_SERVER=XXXXX LDAP_BASE_DN=XXXXX LDAP_DN=XXXXX LDAP_PASS="XXXXX" LDAP_USER_FILTER=XXXXXX LDAP_VERSION=3 LDAP_OPT_REFERRALS=0 LDAP_ID_ATTRIBUTE=BIN;objectGUID LDAP_EMAIL_ATTRIBUTE=mail LDAP_DISPLAY_NAME_ATTRIBUTE=cn ## If you need to allow untrusted LDAPS certificates, add the below and uncomment (remove the #) ## Only set this option if debugging or you're absolutely sure it's required for your setup. LDAP_TLS_INSECURE=true ## Enable LDAP group sync, Set to 'true' to enable. LDAP_USER_TO_GROUPS=true ## LDAP user attribute containing groups, Defaults to 'memberOf'. LDAP_GROUP_ATTRIBUTE="memberOf" ## Remove users from roles that don't match LDAP groups. LDAP_REMOVE_FROM_GROUPS=false # Mail settings MAIL_DRIVER=smtp MAIL_HOST=XXXXX MAIL_PORT=25 #MAIL_USERNAME=null #MAIL_PASSWORD=null #MAIL_ENCRYPTION=null # URL used for social login redirects, NO TRAILING SLASH # Default item listing view # Used for public visitors and user's without a preference # Can be 'list' or 'grid' APP_VIEWS_BOOKS=list APP_VIEWS_BOOKSHELVES=list ``` </details>
OVERLORD added the 🐕 Support label 2026-02-05 06:29:33 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 24, 2022):

Hi @csongs,

Ensure the "Change page editor" system permission is assigned to the roles that you want to have this ability:

image(2)

@ssddanbrown commented on GitHub (Nov 24, 2022): Hi @csongs, Ensure the "Change page editor" system permission is assigned to the roles that you want to have this ability: ![image(2)](https://user-images.githubusercontent.com/8343178/203764541-8b6f0d13-3cd4-407b-9f1a-4df364d7aff2.png)
Author
Owner

@csongs commented on GitHub (Nov 28, 2022):

it work! Thank !

@csongs commented on GitHub (Nov 28, 2022): it work! Thank !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3362