yoychen / v-craft

🎨 A Toolset for Building Extensible Page Builders with Vue.js
https://yoychen.github.io/v-craft/
MIT License
304 stars 52 forks source link

How to implement contenteditable for inline content editing? #16

Open slavicd opened 3 years ago

slavicd commented 3 years ago

Any clues on how one would implement contenteditable (like Craft.js does)?

yoychen commented 3 years ago

I wish src/example/components/elements/utils/Editor.vue may be the answer your want.

rodenp commented 2 years ago

I also cannot get content editable to work. I am using the example from this repository. Clicking on a text container outlines the container in blue, but does not allow the text to be edited.

It also does not work with your published example -> https://yoychen.github.io/v-craft/

Screenshot 2022-09-04 at 14 15 21