quill icon indicating copy to clipboard operation
quill copied to clipboard

Formula tooltip of existing formula is empty

Open benbro opened this issue 8 years ago • 4 comments

[Describe the issue] Clicking on a formula should let you edit it inline or open the formula tooltip with the existing formula so you can edit it with latex.

Steps for Reproduction

  1. Visit http://beta.quilljs.com/
  2. Click on a formula

Expected behavior: [expected] Formula Tooltip should open with existing formula

Actual behavior: [actual] Tooltip doesn't show

Platforms: Chrome 51 on Windows 7

Version: [version] 1.0-beta9

benbro avatar Jul 19 '16 04:07 benbro

https://github.com/quilljs/quill/pull/1992 This is a patch for #801, a few notes.

  • I looked into doing unit tests but that would add a dependency on for katex and did not add any
  • With this modification the tool tip does not have a preview, it goes straight to editing. There is some pro's and cons to this
  • On chrome the area which triggers the selection event does not cover the entire formula, this is likely a separate issue, on larger formula's it is about 80% on smaller formula's it's the first character.

The following is the configuration I used for testing.

<!DOCTYPE html>
<html lang="en">
<head>
<title>Formula Module - Quill Rich Text Editor</title>
<meta charset="utf-8">
</head>
<body>
<!-- Include Quill stylesheet -->
<link href="dist/quill.snow.css" rel="stylesheet">
<link href="node_modules/katex/dist/katex.css" rel="stylesheet">

<!-- Create the editor container -->
<div id="editor">
  <p>Hello World!</p>
</div>

<!-- Include the Quill library -->
<script src="node_modules/katex/dist/katex.js"></script>
<script src="dist/quill.js"></script>

<!-- Initialize Quill editor -->
<script>
  var editor = new Quill('#editor', {
    modules: {
      formula: true,          // Include formula module
      toolbar: [['formula', 'link']]  // Include button in toolbar
    },
    theme: 'snow'
  });
</script>
</body></html>

charlesverge avatar Mar 03 '18 21:03 charlesverge

any update on this issue?

kingwill101 avatar Jul 07 '19 02:07 kingwill101

Why has #1992 been closed? Is this issue fixed?

Photon89 avatar Apr 18 '24 05:04 Photon89

I made a pr 6 years ago, it was ignored. How long should someone maintain a pr?

charlesverge avatar Apr 18 '24 08:04 charlesverge