GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.06k forks source link

[BUG] `textable` component disappears with custom RTE #2272

Closed adriangroch closed 5 years ago

adriangroch commented 5 years ago
  1. Are you using the latest release (older versions are NOT supported)? Yes

  2. Are you facing the bug with your local copy of GrapesJS or with the current demo? Current demo & local, also using the CKEditor plugin

  3. What is the expected behavior? When a textable component, e.g. #481 Merge field is dragged into a text area (i.e. paragraph, heading), it renders accordingly (as it would without the custom RTE)

  4. What happens instead? The component disappears

  5. If you're able to reproduce the bug indicate all the necessary steps

    • Add the grapesjs-ckeditor-plugin
    • Add a textable component to the canvas
    • Drag into an area that the RTE has usage in

Attach screenshots (using KAP/LICEcap), screencasts or live demo Here is the working component with the default RTE showing the functionality of the textable component: Alt

Now here it is (disappearing) with the grapesjs-ckeditor-plugin: Alt

Working JS-Fiddle with grapesjs-plugin-ckeditor and the component from #481 : https://jsfiddle.net/2egpdhtb/7/

artf commented 5 years ago

Hi @adriangroch thanks for the report but unfortunately it's not a bug, it's just not possible, currently, having components (textable in this case) inside a custom RTE. Each RTE has its own implementation and we can't ensure correct usage of external elements (in this case out components) inside them