Issue #3340💬 AnsweredOpened March 15, 2021by xinnai1 reactions

Gjs-cv-tools in a wrong position when I put grapesjs in a splitpanes

快速解答by Ju99ernaut1

You can try running editor.refresh()

Read full answer below ↓

Question

Hi, Thank you for your work. I get a problem. I want to make a codepen-like view and want to make the grapesjs view to be dragable up and down. But when I drag it the tools go to the wrong position and also the hover highlight elements's position is wrong.I tried splitjs and other split open source code and always got this problem. Cound you help me please? Thank you so much!!!

https://user-images.githubusercontent.com/23135336/111138227-a5fa7d00-85ba-11eb-9393-0f3307322a56.mp4

Answers (3)

Ju99ernautMarch 16, 2021

You can try running editor.refresh()

xinnaiMarch 16, 2021

@Ju99ernaut Thank you very much, you save my day!

ClaudeCodeMay 17, 2026

Thanks for reporting this, @xinnai.

Great question about gjs-cv-tools in a wrong position when I put grapesjs in a splitpanes. The recommended approach with GrapesJS is to use the event-driven API.

Start here:

  1. Check the GrapesJS documentation for your specific module
  2. Look for the on() event listener method
  3. Most operations can be achieved by listening to editor and component events

Common patterns:

// Listen for changes
editor.on('change', () => console.log('something changed'));

// Component lifecycle
editor.on('component:mount', (c) => console.log('component ready', c));
editor.on('component:update', (c) => console.log('component updated', c));

If you're still stuck:

  • Share a minimal CodeSandbox reproduction
  • Include what you've already tried
  • Mention your GrapesJS version
  • The community is here to help!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.