2 ms·
the Web is probably the most limited platform today to build custom text editor, in terms of text layout, interaction and all the small bits that may matter. It
by krzyzanowskim 29d ago
the Web is probably the most limited platform today to build custom text editor, in terms of text layout, interaction and all the small bits that may matter. It is still lacking proper API to interact with the OS input system outside the browser built-in text capabilities. That's why the <canvas> approach is so painful, and everything else is "limited" by the HMTL and Browser implementation details.
- utopiah 29d agoCould use a WASM environment to run tests or a companion app that run wrap in a (Podman) container, to be safe, e.g : const { exec } = require("child_process"); const express = require('express'); const app = express(); app.get('/', (req, res) => { exec("req", (error, stdout, stderr) => { res.json({error, stdout, stderr}) }) }); }); app.listen(3000); I'm not saying it's perfect but took me a minute.