GithubHelp home page GithubHelp logo

goinstant / rich-text-editor Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 6.0 1.2 MB

This repo will no longer be updated. GoInstant will be discontinued as of August 31, 2014. Read our blog for more details.

Home Page: http://goinstant.com

License: BSD 3-Clause "New" or "Revised" License

JavaScript 99.96% CSS 0.04%

rich-text-editor's People

Contributors

byronm avatar jhchen avatar ntassone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rich-text-editor's Issues

Private editor instance in the demo

Is it possible to get a private editor on the demo page?
Currently the demo doesn't reflects a realistic usage because there are many users trying to break it at the same time.
A button that will let us create a private instance with a random URL that we can share will be great to test the editor with 2 or three collaborators in a realistic scenario.

Thanks

Overlapping text

screenshot 2014-05-13 11 00 59

Tried to down arrow to where the new lines are, but my cursor doesn't move, ends up typing on top of other text.

General coding standards fixes

Code blocks like this violate our coding standards.

Should be:

var moveCursor = function(quill, user, index) {
  var cursorManager = quill.getModule('multi-cursor');
  var cursorColor = user.avatarColor || DEFAULT_USER_COLOR;

  if (cursorManager.cursors[user.id]) {
    cursorManager.removeCursor(user.id);
  }

  cursorManager.setCursor(user.id, index, user.displayName, cursorColor);
};

Retrieve editor contents/Expose quill instance

Doesn't look like there's a publicly exposed method for retrieve the editor contents programatically.

Since the widget is built on top of Quill, which does expose this functionality, perhaps the internal Quill instance should just be exposed publicly and documented?

Alternatively there could be interfaces that call through to the Quill instance if you don't want to expose that for encapsulation reasons.

Errors when under heavy use

Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': Nodes of type 'HTML' may not be inserted inside nodes of type '#document'. platform.min.js:2
Uncaught TypeError: Cannot read property 'parentNode' of null rich-text-editor.min.js:6

This is getting spammed in the console:

Trying to apply delta to incorrect doc length 
a {startLength: 70, endLength: 71, ops: Array[2], apply: function, applyToText: function…}

n {startLength: 0, endLength: 71, ops: Array[38], savedOpIndex: 38, savedOpOffset: 71…}

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.