markupeditor 0.9.47 → 0.9.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/markup-editor.js +2 -5
- package/package.json +1 -1
package/dist/markup-editor.js
CHANGED
|
@@ -34480,6 +34480,7 @@ function toggleFormatCommand(type) {
|
|
|
34480
34480
|
} if (toggle && view) {
|
|
34481
34481
|
toggle(state, view.dispatch);
|
|
34482
34482
|
stateChanged(view);
|
|
34483
|
+
return true
|
|
34483
34484
|
} else {
|
|
34484
34485
|
return toggle
|
|
34485
34486
|
}
|
|
@@ -34551,6 +34552,7 @@ function setStyleCommand(style) {
|
|
|
34551
34552
|
const newState = view.state.apply(transaction);
|
|
34552
34553
|
view.updateState(newState);
|
|
34553
34554
|
stateChanged(view);
|
|
34555
|
+
return true
|
|
34554
34556
|
} else { // When checking if active based on state, return true only if different
|
|
34555
34557
|
return paragraphStyle(state) != style;
|
|
34556
34558
|
}
|
|
@@ -36008,11 +36010,6 @@ function _testKeyCodeFor(key) {
|
|
|
36008
36010
|
* @throws {Error} If `key` contains an unrecognized modifier
|
|
36009
36011
|
* prefix, including the unsupported "Mod-".
|
|
36010
36012
|
* @returns {boolean} Whether a handler returned `true` for the key.
|
|
36011
|
-
* NOT a reliable "the document changed" signal:
|
|
36012
|
-
* some commands (e.g. setStyleCommand,
|
|
36013
|
-
* toggleFormatCommand) dispatch without returning
|
|
36014
|
-
* `true`, so the document can still mutate while
|
|
36015
|
-
* this returns `false`.
|
|
36016
36013
|
*/
|
|
36017
36014
|
function testTypeKey(key) {
|
|
36018
36015
|
const view = activeView();
|