Code Monkey home page Code Monkey logo

Comments (7)

anthonyjb avatar anthonyjb commented on August 18, 2024

Not currently - static elements can contain anything and so the library doesn't interfere with them (so we don't add events to them), it might be an idea to add a sort of mix up, a moveable-static option for when you know it's OK to add behaviour to the element.

from contenttools.

bfintal avatar bfintal commented on August 18, 2024

A moveable-static would be awesome.

Moving shouldn't be a problem I think. If the movement performed is the same thing that happens with the rest (kinda like just moving the dom around), then there shouldn't be any problem. The main parent that has the movable-static attribute would be wholly moved.

from contenttools.

anthonyjb avatar anthonyjb commented on August 18, 2024

OK I think I can add a flag that allows statics to be moveable, so you'd add something like data-ce-moveable to your static element and it would then allow the drag behaviour. I don't think it will take me long but I'm just shooting out for the evening - however I can have something for you for tomorrow if that will help?

from contenttools.

bfintal avatar bfintal commented on August 18, 2024

Tomorrow would be great!! 👍

from contenttools.

anthonyjb avatar anthonyjb commented on August 18, 2024

@bfintal OK that should be in place now, to make a static element moveable/draggable add the following attribute to the element itself data-ce-moveable.

Thanks for the suggestion it's a really nice little enhancement and actually now it's in place I can think of a number of times I could/should of used it. 👍

from contenttools.

bfintal avatar bfintal commented on August 18, 2024

Just tried it! and It works great! I'm doing an experimental WordPress plugin using Content Tools and I'll keep you updated on it :)

from contenttools.

anthonyjb avatar anthonyjb commented on August 18, 2024

That would be fantastic - integration with mainstream applications like WordPress are going to be the best way for the project to gain traction. If I can help in anyway let me know, once you have something to demo I'm happy to add a link from getcontenttools.com. 👍

from contenttools.

Related Issues (20)

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.