Hey there, I'm Kasper Mikiewicz and this is source of my personal blog.
I've used:
✏ HTML, CSS and JavaScript playground
Home Page: http://lab.kasper.io/editr/
I load a HTML file like:
<div id='map'></div>
And a JS like:
(function () {
var map = new geocloud.map({
el: 'map' // Render a map in #map
});
}());
It doesn't work, because the div element is not ready.
This JS works:
window.setTimeout(function () {
var map = new geocloud.map({
el: 'map'
});
}, 500);
But I would like to use the first one.
It would be amazing if you could add the option for wordpress users (my members) to create their own snippets. So make a page with 4 boxes, one for each tab you have now and they can use it like jsfiddle, open save and share links to their code. If you can get this working I'll be more than happy to pay for the current $14 version 2/3 times. Thanks
I was wondering if you'd consider using a different license than GPL3, or dual licensing a la jQuery. Makes it much easier to use/adopt with an Apache/BSD/MIT license.
Allow to resize and hide specified panels.
I'd love to see Emmet support added.
get the html css and the js code and save in a gist
not working properly even though i followed the document.kindly see the bellow codes
`<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/editr/editr.css">
<title></title>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/ace/1.1.01/min/ace.js"></script>
<script src="//cdn.jsdelivr.net/ace/1.1.01/min/ext-emmet.js"></script>
<script src="/editr/libs/ext.emmet.js"></script>
<script src="/editr/editr.js"></script>
<div class="editr" data-item="PROJECT-NAME" data-files-html="index-1.html;index-2.html" data-files-css="!normalize.css;style.css" data-files-js="!jquery.js;script.js"></div>
</body>
<script type="text/javascript">
$('.editr').each(function() {
new Editr({ el: this });
});
</script>
</html>
`
what else to do ?
First link in the README file in the about section is not working
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library Idered/Editr.js
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "Idered/Editr.js",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
The source suggests GPL as well does the README, but the license text incuded in the README is actually the MIT license.
Could you clarify/fix to reflect the license you want to apply?
为什么不把其他的依赖js也打包?
Gist API rate limits:
authorized: 5000/h
unauthorized: 60/h
I'll create php proxy file where you can put your secret key but for node.js or ruby, I'm counting on you :)
Well, I could use JS to authenticate but it's not recomended because then anyone could find your secret key.
Any way to split this easily to panes, like jsfiddle?
Allow users to add, remove files.
Is there a way to disable the error messages in .js and .css files? This would be great!
Hi Kasper,
Sorry, I've been struggling for the past couple of days trying to make Editr have some "click to load" functionality. I have about 5 Editrs on my page that I only want to load when they are clicked.
The problem is the ui seems to get repeated if I initialize an Editr inside a click handler:
example:
http://jsfiddle.net/ppc_coder/5fAaQ/1/
Any advice? I'm sure I'm doing something wrong and there are ways to work around this but I'd still like to understand what's happening.
In our examples, the code executing is not entirely idempotent, and so the way Editr works is a bit problematic. This is because it just re-executes the code in the same IFrame.
It would be nice if there could be an option to specify that every execution should be done in a new IFrame, and destroy the other one. That way you know you are getting a clean execution.
All parsers(sass, less, haml, coffee script, etc) will be available as an extension. You'll be able to define your own parsers.
Is it possible to use this in a CMS? It looks like it needs static html pages while in a CMS these pages don't exist.
I have tried to use the editor to show some examples of require.js but when I insert the configuration of require it makes fail the editor.
I am using it inside of Reveal.js slides.
Hi, Editr look cool,
Having sass support would be great.
There is a js port of sass using emscripten here : https://github.com/medialize/sass.js/
Could that be used ?
Thanks
Is it possible to load files from a Gist on Github?
I want to use EDITR.JS on my personal site.but it cannot use any php,so can anybody help me?
It would be awesome to have the possibility in the data-files to set remote url for libraries (like on jsfiddle for bootstrap, jquery etc).
Maybe something like data-files-http or data-files-remote is suitable as separate attribute.
Have you thought about making this work with dynamic data instead of static files?
I'd like to be able to open editr in the browser.
Then I'd like to type in the 3 panels.
As I type in the three panels I'd like to see the url change to reflect the code I've typed.
If I share that URL with someone I'd like to see that they can open the editr and see the same thing I currently see.
If they correct some of my code or make a change, they should see that URL change.
I think this could be done by putting the data uri of the code in the url string.
If they send me the new URL I could see the changes they've made and and then I can choose to run it.
I would worry about someone programmatically putting malicious code in a url, then sharing that with people - I wouldn't want to be a vector for nasty actions. One check to that might be to have a secret salt and hash the url so that it isn't something malicious people can programmatically exploit.
Sometimes files aren't added to page in correct order. This is visible for JS and CSS.
Nice repo, thank you for your work!
I have Editr working well in my cms, it displays live editable code perfectly.
If possible, I'd like to use the same display to save code examples to the db.
But I haven't found how to run a js function on change for any of the windows (html, css, js) in order to reflect that change in a hidden input field.
If you know of a way to access those changes I'd love to know how!
Thanks man!
I literally copied every step without any chenges, yet I am stuck on the loading screen of the editor. Is there any common cause for this?
Is it possible to change the code in an editor programmatically? I want to have some widgets on the same page as Editr. The widgets should enable the user to change the code, like "Select template", "Select color" etc.
Just can't fix this one :( Any ideas?
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.