mrdoob / htmleditor Goto Github PK
View Code? Open in Web Editor NEWSimple editor for messing around.
Home Page: https://mrdoob.com/projects/htmleditor/
License: MIT License
Simple editor for messing around.
Home Page: https://mrdoob.com/projects/htmleditor/
License: MIT License
Is there an easy way to reset the code in code-editor back to the default code?
It would be nice to be able to show people how easy it is to just start coding and have the spinning box readily available and ready to edit.
I don't really want to start people off with whatever lousy code I happened to be playing with the last time.
So a 'reset' or 'new' button would be great...
Ponte en este caso, estoy probando un ejemplo de la documentación, lo arrastro al editor, estaría perfecto que me avisara de cada js que no ha cargado igual que las imágenes que no ha cargado.
igual me pongo con ello para mi editor, y te dejo el código saludos
hi there Mr.doob! big fan! :D
...not sure if this is the best place for this comment, but mouse events don't seem to be working in the HTML Editor:
En firefox ubuntu el drag and drop de archivos me funciona, en chrome no :(
En vez de mostrar los errores en consola, porqué no mostrarlos como notificaciones?
He usado para ello el plugin de jquery Noty
enlace:
http://kif.arkasoftware.com/threejs/htmleditor
} catch ( error ) {
var lineNumber = error.lineNumber + lineStart;
errorLines.push( lineNumber );
editor.setLineClass( lineNumber, null, 'errorLine' );
var string= 'Line ' + ( lineNumber + 1 ) + ': ' + error.string;
console.log( string);
notty = window.noty({text: string, closeWith: ['click'], layout:'bottomRight',type:'error', dismissQueue: true,force: true});
}
// console.log( errors );
if (errorLines.length==0){
$.noty.closeAll()
notty = window.noty({text: "OK. No errors detected", closeWith: ['click'], layout:'bottomRight',type:'success',timeout:5000, dismissQueue: true,force: true});
}
return errorLines.length === 0;
};
An incompatibility with recent version, or a bug. Will look at source code...
Al hacer click en about, lleva a la dirección del proyecto en github pero con el nombre viejo, asi que el link esta roto
It would be nice if it were possible to share code with ?code=hidden
available as an option toggle the visibility of the code, when shared, so that the link provides a demo-first form.
This is really helpful. I love how simple it is. Couple notes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.