Coder Social home page Coder Social logo

Comments (6)

impworks avatar impworks commented on June 12, 2024 1

@wwsalmon hey! I tried a few approaches the one that worked best for this particular project's case was to create a makeshift pop-up using jQuery and a lot of keydown handlers. I haven't completed it yet though due to lack of free time, but I intend to finish it somewhere around April.

from bonsai.

impworks avatar impworks commented on June 12, 2024

Apparently, SimpleMDE authors did not keep compatibility with existing CodeMirror plugins (which rely on a global variable named CodeMirror):

sparksuite/simplemde-markdown-editor#418

The solution will require either recreating the show-hint plugin in a custom manner, or forking SimpleMDE to bake it in.

from bonsai.

wwsalmon avatar wwsalmon commented on June 12, 2024

@impworks stumbled upon this while trying to implement something similar with SimpleMDE. Did you end up implementing this functionality? Did you make a custom fork of SimpleMDE for it?

from bonsai.

wwsalmon avatar wwsalmon commented on June 12, 2024

@impworks gotcha! what were some other approaches that you tried?

from bonsai.

impworks avatar impworks commented on June 12, 2024

@wwsalmon well, basically I tried to:

  1. Make show-hint plugin work with current build of SimpleMDE (appears impossible)
  2. Rebuild SimpleMDE with extra plugins
  3. Bind SimpleMDE and some other pop-up library together

The catch here is that Bonsai is not a typical web app. It is supposed to store family history data for hundreds (!) of years and be rewritten from scratch every 10-20 years using modern approaches and technologies. So the rule of thumb is to prefer components that "work" out of the box, and solutions that require as little specific knowledge as possible.

from bonsai.

impworks avatar impworks commented on June 12, 2024

image

from bonsai.

Related Issues (20)

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.