GithubHelp home page GithubHelp logo

Comments (2)

dulnan avatar dulnan commented on May 19, 2024

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.

Ravim-addweb avatar Ravim-addweb commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.