GithubHelp home page GithubHelp logo

ep_author_neat's Introduction

ep_author_neat

Use colored underline for authorship instead of background color.

This requires etherpad-lite 1.3.0 or later.

Left: original etherpad-lite; Right: ep_author_neat enabled

ep_author_neat

License: MIT

ep_author_neat's People

Contributors

clkao avatar johnmclear avatar seballot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ep_author_neat's Issues

Unsettled function bug in hook function

Hi,

cool addon! Looks really neat and works almost flawlessly. :)
When starting a pad I get the following warning in the browser console:

UNSETTLED FUNCTION BUG IN HOOK FUNCTION (plugin: ep_author_neat, function name: ep_author_neat/static/js/index:aceEditEvent, hook: aceEditEvent): The hook function neither called the callback nor returned a non-undefined value. This is prohibited because it will result in freezes when a future version of Etherpad updates the hook to support asynchronous behavior. PadName line 24 > injectedScript line 24 > Function:67:1793
    callHookFnSync https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:67
    callAll https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:67
    callAll https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:67
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    (Async: setTimeout handler)
    r https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    atMost https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    (Async: setTimeout handler)
    r https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    atMost https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    (Async: setTimeout handler)
    r https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    atMost https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    (Async: setTimeout handler)
    r https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    atMost https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    (Async: setTimeout handler)
    r https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    atMost https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ee https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    te https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    ue https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5
    i https://my.ether.pad/p/PadName line 24 > injectedScript line 24 > Function:5

If I can help with fixing this I'd be happy to. Thanks again!

Improve primary author detection

currently it is line based. If an author is primary for a very short line within a large paragraph mainly by another author, we should be able to detect that and make the primary author of the whole paragraph primary as well for that line.

very long initial load time on big Pads

I have a big pad with ~3500 lines and ~170k revisions. If i install this plugin i have to click "continue execute this script" 5 times in Firefox before i can do anything in the Pad. On a small Pad it is doing really nice.

I am a newbie.. but i love your idea of ep_author_neat.

I forked a copy of the development tree, and cloned it for myself, since its my ambition to use your ep_author_neat. However, i cant get it to start... And everything else seems to be working fine. I am just trying and failing. could i email you about it?

flashing underline as I type

In chromium (ubuntu saucy), the color underline is redrawn after every key stroke, creating a mind numbing experience of flashing confusion.

Underlines flicker while typing

While typing, the authorship underline flickers below the current line, even if the line has only one author and therefore shouldn't show an underline. When I stop typing, the underline goes away as expected.

I plan to write a patch to fix this, but I have no familiarity with the code currently. Could you give me any guidance on where to look?

removing chunks of content doesn't fire redraw

create lines 1 2 3 4 5 with content 1 2 3 4 5

delete lines 2 to 4, note that the blue author bar extends past viewable content. This is related to #5 and is a limitation introduced by the plugin hook that only returns the first line edited.

To fix this we need a way to iterate over the dom to find any future/previous lines that contain either:
a different author
OR
nothing

Publish latest version?

master is at v0.0.33 is committed, but the published version is v0.0.31. Would it be possible to publish the latest version?

nice idea!

I really wish I could turn off the underlining though, because it is super distracting as it flashes every character

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.