Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded when format to code-block #1123

Closed
fishonweb opened this issue Nov 21, 2016 · 0 comments
Closed

Maximum call stack size exceeded when format to code-block #1123

fishonweb opened this issue Nov 21, 2016 · 0 comments

Comments

@fishonweb
Copy link

When I paste huge HTML (about 450 lines) and apply "code-block" format I get an error in console. I use highligthjs for syntax highlighting.

Uncaught RangeError: Maximum call stack size exceeded(…)
  ScrollBlot.optimize @ quill.js:1322
  optimize @  quill.js:6650
  formatLine @ quill.js:3939
  (anonymous function) @ quill.js:1868
  modify @ quill.js:2227
  format @ quill.js:1862
  (anonymous function) @ quill.js:9266

Steps for Reproduction

  1. Visit http://codepen.io/wrench13/pen/MbpezB
  2. Copy about 450 lines of HTML without minify
  3. Apply "code-block" format

Expected behavior:
I would be able to paste huge HTML.

Platforms:
Ubuntu 14.04
Chrome 54.0.2840.100 (64-bit)

Version:
Quill 1.1.5
Highlightjs 9.8.0

If I replace mutations.push.apply(mutations, remaining); at line 1322 in dist/quill.js by mutations.concat(remaining);, I have no more error but I can't find how to do this in Quill source files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants