Comments (2)
Ah, this is something that's completely missing from the docs I just realised. Sorry for that!
What you need is to have a single HTML element somewhere in your app with the class bk-main-canvas
. I always put it in my root element in app.vue
:
<template>
<div class="bk-main-canvas">
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
Bascially what this does is tell blökkli which element should be used for the "artboard". Inside the editor, this element will be made position: fixed, it receives a drop shadow and is made zoomable/draggable. In most cases the root element of the app is where this makes most sense, but it could also be in the layout or in your page component.
from editor.
Thanks @dulnan that makes sense, I have checked the playground of the editor and that just worked.
Side question: I have noticed in the live demo that, I can use Text and YouTube videos on the clipboard. But when I try to drop the image pasted on the clipboard into the editor, it doesn't work. YouTube and Text are being dropped on the editor but not the image. Is that something already on the cards?
from editor.
Related Issues (17)
- Edit-Window is displayed outside of viewport
- 'Button' Block not yet rendering correctly
- Sidebar-editor not yet working in live-demo on blokk.li
- Create german content on blokk.li
- Add updated content to blokk.li
- Add how to install
- Improve vertical scroll speed
- Small Checkbox doc update
- Improve editing of reusable blocks
- determineVisibleOptions receives library item props
- Don't render wrapper in BlokkliField when not in edit mode and list is empty
- Throw error when <BlokkliField> name prop is wrong
- schema.json export is randomly sorted. HOT 1
- Restrict available fragments per field
- Resolving a comment from the comment sidepane does not work
- Search on library items does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.