githuber-md icon indicating copy to clipboard operation
githuber-md copied to clipboard

Please provide an option to disable shortcuts (fixed)

Open xiaoouwang opened this issue 3 years ago • 1 comments

Hello dear author,

Tks for the plugin, it's fantastic :)

It has been mentioned some times but I'd like to emphasize how inconvenient it is for some people to not be able to turn off shortcuts.

In my case, ctrl+E is overridden by the emoji controller, which is kind of useless imo.

Keep up the good work!

Best,

xiaoouwang avatar Apr 12 '22 16:04 xiaoouwang

For those struggling with shortcuts, here is a quick fix (I tweaked some parameters, use it at ur own risk):

Use the plugin source file editor, go to wp-githuber-md/assets/vendor/editor.md/editormd.min.js, search the file using ctrl- and you will see all the shortcuts. Delete those that you don't want.

Then, go to wp-githuber-md/src/Controllers/Markdown.php, in the function admin_enqueue_scripts, change wp_enqueue_script( 'editormd', $this->githuber_plugin_url . 'assets/vendor/editor.md/editormd.min.js', array( 'jquery' ), $this->editormd_varsion, true ); to wp_enqueue_script( 'editormd', $this->githuber_plugin_url . 'assets/vendor/editor.md/editormd.min.js');

Voila, hope it helps :)

In short, the change doesn't pertain to this plugin per se so it's a little tricky for the author to provide some config options I guess.

xiaoouwang avatar Apr 13 '22 12:04 xiaoouwang

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] avatar May 29 '23 00:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 31 '23 00:05 github-actions[bot]