hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.38k stars 916 forks source link

[Feature] showShortKey prop option to Hide shortkey values in title #794

Open karx opened 2 years ago

karx commented 2 years ago

🚀 Feature Proposal

As of the moment, the keyboard shortcuts are not configurable, and even if we disable keyboard shortcuts, using shortKey prop, the title still contain the Keyboard shortcut values, which is misleading.

Add a showShortKey boolean could be used to make the Shortcut hint in the title, optional.

This also provides a starting path to making keyboard shortcuts configurable.

Motivation

Example

<mavon-editor
          rows="6"
          id="note-input"
          :shortKey="false"
          :shortkey ="false"
          placeholder="Add to note..."
          class="mavonEditor"
          v-model="customNote"
          :language="'en'"
          @save="createNote" />
karx commented 2 years ago

For the maintainers, let me know if there is any progress/thoughts/work done in this direction. Would be happy to raise a PR, if this makes sense.

Looking for comments.