Git Product home page Git Product logo

Comments (1)

laurelnaiad avatar laurelnaiad commented on June 28, 2024

I'm still struggling with what seems like a codemirror vs. bootstrap problem, but I just wanted to point out what seems to be a small bug in your hack.

cm_el.className = cm_el.className + a.textContent;
didn't work for me, but
cm_el.className = cm_el.className + ' ' + a.textContent;
did.

Otherwise, a class name (I have one I'm using on a div that is the codemirror directive instance) will be slapped onto the class name that represents it as codemirror (thus obliterating both the built-in classname and the one I'm trying to set.

Without hacking your hack, my class name ended up as
class="CodeMirrorcodemirror-instance cm-s-default" (codemirror-instance is the class that I added).

For what it's worth, it seems that for one reason or another my main problem is that codemirror doesn't want to live in a bootstrap grid -- no text, no lines to edit. I imagine it has something to do with absolute positioning but I've only just isolated the grid as the best candidate to explain my issue, so I can't be sure. If anyone has any ideas on that, I'm all ears.

Update -- my original problem, blamed on bootstrap, wasn't in fact bootstrap. It's because I had it in a transcluded directive, not because of bootstrap. I will take this problem to a different issue.

from ui-codemirror.

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.