Giter Club home page Giter Club logo

Comments (9)

shu8 avatar shu8 commented on July 30, 2024 8

I've removed the Ace Editor feature.

To anyone who sees this in the future, the feature is available as a separate userscript at Stack Apps: Stack Exchange Editor Extra: a userscript to add extra features to the Markdown Editor

from sox.

shu8 avatar shu8 commented on July 30, 2024 1

@enki-code I've fixed the first issue, but can't repro the second one:

screen shot 2016-03-13 at 11 09 25

Does it still happen? Anything in console?

from sox.

mezmi avatar mezmi commented on July 30, 2024

Yeah, second one still happens. Dialog is blank.

Console errors

Uncaught ReferenceError: ace is not defined
(anonymous function) @ VM1965:1001
g.string.c.(anonymous function) @ VM1949:33

Uncaught ReferenceError: ace is not defined
(anonymous function) @ VM1965:1012
n.event.dispatch @ VM1965:8
r.handle @ VM1965:8

Uncaught ReferenceError: ace is not defined
(anonymous function) @ VM1965:1017
n.event.dispatch @ VM1965:8
r.handle @ VM1965:8

from sox.

shu8 avatar shu8 commented on July 30, 2024

@enki-code try entering ace in the console after you get those error message. does it exist?

from sox.

mezmi avatar mezmi commented on July 30, 2024

@shu8 I have an idea for a fix. When loading a question, an ajaxComplete event fires, you could try wrapping your initialization code in that. I suspect this is a timing issue.

$(document).ajaxComplete(function(event, request, settings) {
    var url = settings.url;
    if(url.indexOf('/posts/') > -1){
         // try injecting your stuff here.

    }
});

from sox.

shu8 avatar shu8 commented on July 30, 2024

@enki-code I'll be looking into this again either today or tomorrow :)

from sox.

shu8 avatar shu8 commented on July 30, 2024

It seems the ace editor issue is a timing issue... but I can't fix it. To anyone interested, I've tried..:

  • @requireing the Ace editor files directly from the userscript
  • adding various setTimeouts
  • using the ajaxComplete function enki gave

from sox.

shu8 avatar shu8 commented on July 30, 2024

ok.. this ace editor is a pain.

Thoughts on getting rid of the ace editor section entirely? @enki-code

from sox.

mezmi avatar mezmi commented on July 30, 2024

@shu8 I honestly wouldn't be bothered by it. It might be better off on its own, as a strand alone script.

from sox.

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.