editing stops working in firefox
reproduction:
- open https://codapi.org/embed/?sandbox=cpp&src=/assets/code/hello.cpp (or use any editor on web page).
- Start editing, i.e. just adding empty lines in the middle - editing stops working at some point.
PS: cool project!
Works fine for me. Maybe some browser extension causes this on your machine? Please try in the Private mode with all extensions disabled.
interesting. I've tried in private mode without extensions, but behavior persists. It seems to be position-dependent 🤷 :
#include <iostream>
#include <string>
void greet(const std::string& name) {
std::cout << "Hello, " << name << "!" << std::endl;
}
// <- adding lines here works
int main() { // <- adding lines after this does not work
greet("World");
}
Thanks, I see it now. The issue is probably related to the editor used on the codapi.org site, not the Codapi widget, so I probably won't fix it. But I'll look into it if I have time.
Confirmed: it's an editor bug, not related to Codapi.
I've requested a new version of the editor with a fix.