GithubHelp home page GithubHelp logo

inplaceeditor's People

Contributors

tbela99 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

inplaceeditor's Issues

PATCH to work with HTML Tables

I noticed the code messes up tables, which is where I am working.

This code change just replaces the 'span' you were creating as the container, and uses the node type that the end-user supplies (el.nodeType)

    build: function (el) {
        var options = this.options,
            oldValue = el.get(options.property);
            /* Mess up tables:  container = new Element('span').injectAfter(el), */

        /* Duplicate the typof of node - important in tables */
        var container = new Element( el.nodeName ).inject(el, 'after');

        var textarea = new Element(
            options.element, options.properties).set('value', oldValue
        ).inject(container);

Requests

Hi again

The plugin is working really well for me, but please would you consider these issue?

  • Currently we can set colours: would it be possible to instead (or as well, I suppose, for backwards computability) by possible to supply a class name for the element hovering, so that the plugin would add and remove the class name?
  • Would it be possible to have the Save and Cancel options be styled buttons, to avoid the 'javascript:' link?
  • Could the whole editor be either wrapped in a namable entity, or could the save/cancel links be given names or classes, so that can be easily styled?

Thanks for reading and for the module!

Lee

Mootools 1.3 compatability

Thanks for a useful module!

I think your Mootoosl Forge page states 1.3.1 compatability, but the main JS file has the following on line 69:

container = new Element('span').injectAfter(el),

This fails on my 1.3, unless I change it to:

container = new Element('span').inject(el, 'after'),

HTH
Lee

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.