mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 04:17:50 +00:00
UBERF-8242 Fix scroll jumping in codeblock (#6695)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
a9fcdfc61d
commit
f43f247b5c
@ -134,7 +134,7 @@ function createDecorations (doc: ProseMirrorNode, options: CodeBlockLowlightOpti
|
|||||||
doc.descendants((node, pos) => {
|
doc.descendants((node, pos) => {
|
||||||
if (node.type.name === CodeBlockLowlight.name) {
|
if (node.type.name === CodeBlockLowlight.name) {
|
||||||
decorations.push(
|
decorations.push(
|
||||||
Decoration.widget(pos + node.nodeSize - 1, (view) => {
|
Decoration.widget(pos + 1, (view) => {
|
||||||
const button = createLangButton(node.attrs.language)
|
const button = createLangButton(node.attrs.language)
|
||||||
|
|
||||||
if (view.editable) {
|
if (view.editable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user