Comments (9)
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.
@enki-code I've fixed the first issue, but can't repro the second one:
Does it still happen? Anything in console?
from sox.
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:33Uncaught ReferenceError: ace is not defined
(anonymous function) @ VM1965:1012
n.event.dispatch @ VM1965:8
r.handle @ VM1965:8Uncaught ReferenceError: ace is not defined
(anonymous function) @ VM1965:1017
n.event.dispatch @ VM1965:8
r.handle @ VM1965:8
from sox.
@enki-code try entering ace
in the console after you get those error message. does it exist?
from sox.
@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.
@enki-code I'll be looking into this again either today or tomorrow :)
from sox.
It seems the ace editor issue is a timing issue... but I can't fix it. To anyone interested, I've tried..:
@require
ing the Ace editor files directly from the userscript- adding various
setTimeout
s - using the
ajaxComplete
function enki gave
from sox.
ok.. this ace editor is a pain.
Thoughts on getting rid of the ace editor section entirely? @enki-code
from sox.
@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)
- Adding Answers on top bar HOT 2
- Swap shortcuts ctrl k and ctrl l HOT 1
- Remove Diamond on site for mods, keep diamond on other sites HOT 4
- Some broken features HOT 5
- Hide respondents' and commenters' name except on hover HOT 2
- (Down)vote tooltip gets mixed-up with tags and links under the question HOT 1
- live preview while writing a comment
- Settings menu gone HOT 3
- Spirit Icon not showing HOT 1
- Mod diamond in the topbar that has notifications of new questions on a site's meta is missing HOT 2
- Open imgur images as larger modals on click - not working HOT 1
- No SOX features applied, only settings icon visible HOT 22
- Sort the flag-summary based on outcome time, so the top entries are the most recent resolved. HOT 2
- Currently isn't functional on Violentmonkey; gear (settings) button and diamond button (meta notifications) in the topbar are missing HOT 8
- Ballot box in moderator election is hidden HOT 3
- Convert Stackoverflow answers link in another answer into bookmarks HOT 1
- AJAX listeners may be run multiple times for the same event HOT 2
- Customized behaviour for question/answer list on 10k tools page
- "All settings" checkbox is misaligned HOT 1
- "Hide the 'welcome back" doesn't work at all for me.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sox.