Disable Slack Desktop App's WYSIWYG editor

twitter logo github logo ・1 min read

Run the following command in Terminal.

$ SLACK_DEVELOPER_MENU=true open -a /Applications/Slack.app

Then, Open the DevTools (cmd + opt + I), Run the following script in console.

(() => {
  slackDebug.clientStore.workspaces
    .getAllWorkspaces()
    .forEach((teamId) => {
      const { redux } = slackDebug[teamId];

      const {
        wysiwyg_composer,
        wysiwyg_composer_ios,
        wysiwyg_composer_webapp,
        ...payload
      } = redux.getState().experiments;

      redux.dispatch({
        type: "[19] Bulk add experiment assignments to redux",
        payload
      });
    });
})();
twitter logo DISCUSS (8)
markdown guide
 

One liner to remove it from desktop app:

git clone https://github.com/kfahy/slack-disable-wysiwyg-bookmarklet && ./slack-disable-wysiwyg-bookmarklet/bin/patch-desktop-app && rm -rf slack-disable-wysiwyg-bookmarklet

It downloads with git, executes the patch, then removes whatever you downloaded with git. Clean and fast, takes about 10 seconds to patch.

 

Hm... didn't work for me.

Uncaught ReferenceError: slackDebug is not defined

I found this to work for me:
github.com/kfahy/slack-disable-wys...

 
 
 

Thanks for this. If possible, could you share how to reset Slack back to wysiwyg mode?

 
 

This worked for me, but it appears you need to do it anytime you open Slack.

 
Classic DEV Post from Jun 9

Top 5 Soft Skills for Software Engineer

Soft skills are as critical as technical skills for a software engineer. No one works in isolation. Each person has to deal with teammates, colleagues, managers, etc. Therefore team interpersonal skills are essential too. Soft skills include things like good communication, honesty, teamwork, integrity, organization, empathy, etc.

Shun Tedokon profile image
Web & Application Engineer