@udecode/plate-basic-marks
Advanced tools
Comparing version 8.1.0 to 8.2.1
# @udecode/plate-basic-marks | ||
## 8.2.1 | ||
### Patch Changes | ||
- [#1253](https://github.com/udecode/plate/pull/1253) by [@thefinnomenon](https://github.com/thefinnomenon) – | ||
- fix: The Subscript and Superscript plugins weren't clearing the other one on hotkey use. There was a typo in each one where they cleared themselves instead of the other | ||
- swap hotkeys: `mod+,` for subscript and `mod+.` for superscript | ||
- updated the hotkey for strikethrough to match Google Docs `mod+shift+x`. The existing one `mod+shift+s` would cause a refresh in Chrome. | ||
## 8.1.0 | ||
@@ -4,0 +13,0 @@ |
@@ -93,3 +93,3 @@ import { createPluginFactory, onKeyDownToggleMark, findHtmlParentElement } from '@udecode/plate-core'; | ||
options: { | ||
hotkey: 'mod+shift+s' | ||
hotkey: 'mod+shift+x' | ||
}, | ||
@@ -105,3 +105,4 @@ deserializeHtml: [{ | ||
const MARK_SUBSCRIPT = 'subscript'; | ||
const MARK_SUBSCRIPT$1 = 'subscript'; | ||
const MARK_SUPERSCRIPT$1 = 'superscript'; | ||
/** | ||
@@ -112,3 +113,3 @@ * Enables support for subscript formatting. | ||
const createSubscriptPlugin = createPluginFactory({ | ||
key: MARK_SUBSCRIPT, | ||
key: MARK_SUBSCRIPT$1, | ||
isLeaf: true, | ||
@@ -119,4 +120,4 @@ handlers: { | ||
options: { | ||
hotkey: 'mod+.', | ||
clear: MARK_SUBSCRIPT | ||
hotkey: 'mod+,', | ||
clear: MARK_SUPERSCRIPT$1 | ||
}, | ||
@@ -133,2 +134,3 @@ deserializeHtml: [{ | ||
const MARK_SUPERSCRIPT = 'superscript'; | ||
const MARK_SUBSCRIPT = 'subscript'; | ||
/** | ||
@@ -145,4 +147,4 @@ * Enables support for superscript formatting. | ||
options: { | ||
hotkey: 'mod+,', | ||
clear: MARK_SUPERSCRIPT | ||
hotkey: 'mod+.', | ||
clear: MARK_SUBSCRIPT | ||
}, | ||
@@ -197,3 +199,3 @@ deserializeHtml: [{ | ||
export { MARK_BOLD, MARK_CODE, MARK_ITALIC, MARK_STRIKETHROUGH, MARK_SUBSCRIPT, MARK_SUPERSCRIPT, MARK_UNDERLINE, createBasicMarksPlugin, createBoldPlugin, createCodePlugin, createItalicPlugin, createStrikethroughPlugin, createSubscriptPlugin, createSuperscriptPlugin, createUnderlinePlugin, deserializeHtmlBold, deserializeHtmlItalic }; | ||
export { MARK_BOLD, MARK_CODE, MARK_ITALIC, MARK_STRIKETHROUGH, MARK_SUBSCRIPT$1 as MARK_SUBSCRIPT, MARK_SUPERSCRIPT, MARK_UNDERLINE, createBasicMarksPlugin, createBoldPlugin, createCodePlugin, createItalicPlugin, createStrikethroughPlugin, createSubscriptPlugin, createSuperscriptPlugin, createUnderlinePlugin, deserializeHtmlBold, deserializeHtmlItalic }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -97,3 +97,3 @@ 'use strict'; | ||
options: { | ||
hotkey: 'mod+shift+s' | ||
hotkey: 'mod+shift+x' | ||
}, | ||
@@ -109,3 +109,4 @@ deserializeHtml: [{ | ||
const MARK_SUBSCRIPT = 'subscript'; | ||
const MARK_SUBSCRIPT$1 = 'subscript'; | ||
const MARK_SUPERSCRIPT$1 = 'superscript'; | ||
/** | ||
@@ -116,3 +117,3 @@ * Enables support for subscript formatting. | ||
const createSubscriptPlugin = plateCore.createPluginFactory({ | ||
key: MARK_SUBSCRIPT, | ||
key: MARK_SUBSCRIPT$1, | ||
isLeaf: true, | ||
@@ -123,4 +124,4 @@ handlers: { | ||
options: { | ||
hotkey: 'mod+.', | ||
clear: MARK_SUBSCRIPT | ||
hotkey: 'mod+,', | ||
clear: MARK_SUPERSCRIPT$1 | ||
}, | ||
@@ -137,2 +138,3 @@ deserializeHtml: [{ | ||
const MARK_SUPERSCRIPT = 'superscript'; | ||
const MARK_SUBSCRIPT = 'subscript'; | ||
/** | ||
@@ -149,4 +151,4 @@ * Enables support for superscript formatting. | ||
options: { | ||
hotkey: 'mod+,', | ||
clear: MARK_SUPERSCRIPT | ||
hotkey: 'mod+.', | ||
clear: MARK_SUBSCRIPT | ||
}, | ||
@@ -205,3 +207,3 @@ deserializeHtml: [{ | ||
exports.MARK_STRIKETHROUGH = MARK_STRIKETHROUGH; | ||
exports.MARK_SUBSCRIPT = MARK_SUBSCRIPT; | ||
exports.MARK_SUBSCRIPT = MARK_SUBSCRIPT$1; | ||
exports.MARK_SUPERSCRIPT = MARK_SUPERSCRIPT; | ||
@@ -208,0 +210,0 @@ exports.MARK_UNDERLINE = MARK_UNDERLINE; |
{ | ||
"name": "@udecode/plate-basic-marks", | ||
"version": "8.1.0", | ||
"version": "8.2.1", | ||
"description": "Basic marks plugin for Plate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46914
453