Giter Club home page Giter Club logo

Comments (6)

mweibel avatar mweibel commented on August 23, 2024

Hi,

yes with the current architecture this is a problem. We are currently changing the structure on how plugins can hook into certain events but it's not 100% finished yet.

You could patch either the colors or the inline-images plugin for now with something like this (before the beforeShow handler gets overwritten):

var oldBeforeShow = Candy.View.Event.Message.beforeShow;
Candy.View.Event.Message.beforeShow = function(args) {
  oldBeforeShow(args);
  // ....
}

from candy-plugins.

eluzgin avatar eluzgin commented on August 23, 2024

Thanks for the tip!
Also wanted to point out that inline-images plugin was not working with current Candy version at all.
handleBeforeShow was expecting message argument (which probably was the case when it was written over the year ago) but currently argument is an object args. I merged the fix.
Developer for this plugin was not responding and may not be available.
Somebody else might need to approve this fix.

from candy-plugins.

eluzgin avatar eluzgin commented on August 23, 2024

The solution above - doesn't work by the way. It calls default empty beforeShow function.

from candy-plugins.

eluzgin avatar eluzgin commented on August 23, 2024

For now I just merged beforeShow code from colors (1 line) into inline-images method.
The colors plugin is initialized first and inline-images last and then it works.

from candy-plugins.

mweibel avatar mweibel commented on August 23, 2024

@eluzgin ok that's another solution.
I hope I can soon merge the jquery events branch into the dev branch and then soon release a new version.. Then such workarounds aren't needed anymore.

from candy-plugins.

mweibel avatar mweibel commented on August 23, 2024

Should work now as we have the new jquery event model.

from candy-plugins.

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.