Closed BookOwl closed 9 years ago
DOM elements
OK.
Dom elements with canvas block rendering like pixie? I tried to render cblocks with CSS and got nowhere useful. But maybe I suck at css
Just had a brilliant idea: SVG.
That is a good idea! It sounds much better than HTML + CSS
YES I LOVE S'VG
Svg :grinning:
How do you type in an SVG?
I don't know much about the ins and outs of svg but stackoverflow says contentEditable works on text.
Hmm svg sounds like a bit of a hassle actually
Ah, I forgot about inputs. :P
Canvas?
We could use this: https://github.com/nathan/visual
If anyone can get it up and running, I'd love to see what it's capable of!
I'll try and make a simple project with it to see if it will work for us.
Okay, cool! :D
STOP THE PRESS!!! (Wait, we don't have press :P) I just found https://developers.google.com/blockly/ what do you guys think of it?
It's okay. It has my suggestion for properties implemented, but I still like making stuff ourselfs.
http://codepen.io/robinp7720/pen/JdmJYo I know, it looks horrible and the design needs to be improved but this would be very easy to expand and would work for us as html is a markup language. Not a scripting lanuage. Blocky seams to be better for scripting languages. Could be used as a javascript IDE?
Also, I expected something like this to already exists, but this idea is apparently one of a type! This project might explode! :D Lets hope it doesnt die like go-anywhere or whatever it was called
@BookOwl I thought everyone had seen that... Apparently not. :P
@robinp7720 You're right - it doesn't look great now, but could be easily expanded on to be quite usable! :D
Status Report: Blocky: as @robin7720 said, it would work great as a script editor, but not for markup. I don't think that it will work for elemental. Visual: I tried to make the test. Really, I did! But visual is a long, cryptic piece of of code with no comments or documentation, and the only demo is pixie, which is equally confusing. It might work, but only if somebody smarter than me can figure out how to use it. @robin7720's block thingie: It. Looks. AWSOME! It still needs a little work, but I think we can use it!
Unless anybody has another idea, we will work on @robin7720's css block styles and use that.
I'd say try to adapt those styles and make them work, but I wouldn't set it in stone - if things don't go well, we should still be open to other options.
Agreed also could you check out the ToS issue?
@PullJosh I tried to use that with Jquery click events but if you clicked on a block inside a loop, it would always result in the loop also calling the event. Not only the block.
As a side note. I've started working on my own editor right now. if you guys play nice for a while, I might merge my block editor into this because right now, apparently no one respects me trying to help.
@BookOwl its robinp7720 not robin7720
We are "playing nice". "Playing nice" is very different from automatically accepting your suggestions.
and ew guys try not to use jQuery I really do suggest RiotJS (or ReactJS, but it's slightly more complicated)
We're totally fine with you helping out! However, it seems that we often have a hard time understand what you're trying to expain. I reccomend re-reading what you've written before posting. I almost never write something perfect on the first go. Even with comments, I revise quite a bit before posting in order to sound like an intelligent human being (which may or may not be the case.)
It would be much more helpful if you were willing to work with us on the editor we have started - it's unlikely that we'll be able to use anything you create if it isn't made in conjunction with what we're working on.
As for click events, there are two things. 1) Don't use jquery unless it is absolutely 100% necessary. In this case, it isn't. 2) It probably is a z-index issue. The outer elements are appearing on top of the inner elements (though I could be wrong).
@Firedrake969 By arguing about the fact that you are "playing nice", you are paradoxically proving yourself wrong.
Just something to wrap your head around.
PullJosh - I really really really would love for you to at least read through RiotJS's docs because I think it has the potential to be extremely helpful.
@PullJosh Not quite sure what he means by "playing nice", I guess, because I interpreted it as him wanting us to do what he wants more of the time.
Just realized something...
Your username is "Firedrake969". "Fire" means the same as "flame". "Drake" is, according to dictionary.com, a male duck. Ducks can detect the earth's magnetic poles. Magnets. Flame. You are a flame war magent. Thus, cheerios are illuminati.
As for RiotJS, I'll take a look. :)
k then o.o
Looking at the page, I can't even tell how riot is supposed to be helpful.
Could you explain for me?
So let's say we have a block - [______]
. We're rendering based on DOM (IIRC), so we have a div for that. <div class='block-name'>children</div>
Using Riot, we can use a tag <my-custom-block-element option1='test' option2='test2'>
and pass in options to be able to have repeatable DOM elements without rewriting the interior over and over. Just a thought, I've never used Riot for this type of thing.
I still don't see how that's helpful. :/
My current understanding is this:
With riot, you can...
1) Grab variables that were never defined and magically get strings out of them (such as <h3>{ opts.title }</h3>
in the demos)
2) Write js without wrapping it in a script tag in order to confuse your fellow programmers
3) Have indentation randomly cause errors in your code, such as this example (taken directly from the website):
<!-- works -->
<my-tag>
</my-tag>
<!-- also works -->
<my-tag></my-tag>
<!-- this fails, because of indentation -->
<my-tag>
</my-tag>
4) Use a bunch of preprocessors that none of us know how to use 5) Put random style elements everywhere (bad coding) and have them be automatically fixed for us, but only in the behind-the-scenes code that we'll never look at anyway 6) "Mounting", except the page never actually explained what that is. They just said it could be done.
As far as I can tell, it doesn't seem that helpful. I'm sure there's something I don't understand, but I really can't see any example that would be helpful in any way. What am I missing? :/
To be honest, I have no idea how it would help in this specific case, but it's really powerful for stuff I've been working on and I was just brainstorming.
But it is quite powerful, I assure you. Not that we should use it because I still have no idea how to apply it for this project.
Okay! Awesome that you found it, but I don't think we should use it in this case. ;)
Yeah, just throwing everything I can think of out there. Also look at ReactJS and then get your mind blown for a while :P
lol okay
lololol http://prntscr.com/7wyivt
+1 for banning yourself
no, that was my test account named -_-
Is it bad that I can't understand a blog post titled "ReactJS for Stupid People"?
sorry
xD
I promise I'm not Andrew Ray
btw, if we want ajax, which we will, NO JQUERY. Agreed?
Agreed.
Go tell @robinp7720 that.
shall we make an executive decision right here?
Also, Axios is a great HTTP library. https://github.com/mzabriskie/axios
Always talk to others before making executive decisions. ^ Borderline all caps worthy
Me, 6 days ago
see title.