mirror of
https://github.com/codex-team/editor.js
synced 2024-06-18 13:45:20 +02:00
parent
67d557120c
commit
3842595c24
2
dist/codex-editor.js
vendored
2
dist/codex-editor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
### 2.7.29
|
||||
|
||||
- `Fix` Fixed selection behavior when text has modifiers from Inline Toolbar
|
||||
|
||||
### 2.7.28
|
||||
|
||||
- `New` [Tools Validation](https://github.com/codex-team/codex.editor/blob/master/docs/tools.md#validate-optional) is added.
|
||||
|
|
|
@ -225,9 +225,7 @@ export default class SelectionUtils {
|
|||
if (!this.isFakeBackgroundEnabled) {
|
||||
return;
|
||||
}
|
||||
const fakeBack = this.findParentTag('SPAN');
|
||||
|
||||
fakeBack.style.paddingTop = '';
|
||||
this.isFakeBackgroundEnabled = false;
|
||||
document.execCommand(this.commandRemoveFormat);
|
||||
}
|
||||
|
@ -237,10 +235,7 @@ export default class SelectionUtils {
|
|||
*/
|
||||
public setFakeBackground() {
|
||||
document.execCommand(this.commandBackground, false, '#a8d6ff');
|
||||
const fakeBack = this.findParentTag('SPAN');
|
||||
|
||||
// The matched value to be slightly compared with the actual height of the selection
|
||||
fakeBack.style.paddingTop = '0.30em';
|
||||
this.isFakeBackgroundEnabled = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue