Share your repls and programming experiences

← Back to all posts
A Little Text Editor I Created
JWZ6 (368)

It is cool ngl. For the font-size part, enter a number and the text will become that number + px. Cool right?

Edit: If you want to LEARN some basic JS Check out my JS tutorial: https://replit.com/talk/learn/JS-BASIC-Tutorial/135309

Edit 2: I didn't expect to get this much updoots/upvotes LOL

Edit 3: New KEYBOARD shortcuts! Ctrl + I for italic, Ctrl + B for bold, Ctrl + U for underline, Ctrl + S for strikethrough, and Ctrl + F for fade!

Edit 4: Yay! I made the front page :)

Edit 5: Special thanks to @LegendaryWolf for helping me with the rainbow buttons!

Edit 6: New clear button with ctrl + c as it's keyboard SHORTCUT

Edit 7: I like pizza LOL (now what am I saying XD)

Edit 8: NEW click game: https://replit.com/talk/share/Play-Forever-With-My-New-Click-Game-Thingy/135688

Edit 9: Took down the rainbow buttons

Comments
hotnewtop
Th3Coder (107)

Nice! You can add strikethrough, superscript and subscript too!

Th3Coder (107)

@JWZ6 btw congrats! You got to the HOT! section!

Th3Coder (107)

@1d10tBoy2 ah hello again! This time you'e using yet another account and you're @1d10tB0y 's alt. You' re STILL spamming comments and weird glyphs.

So you're jason37. Again.

NotMrMan (111)

@Th3Coder he joined a repl i made and spammed 128 notifications to 21 people. i am constantly having to remove users so that they don't get spammed(with their permission of course)

Th3Coder (107)

@NotMrMan woah! I also got 17 notifications XD

P0GCHAMPB0i (44)

@Th3Coder big oof! well i can't even make a folder in the cuminity site but i only can creat folders in people's folder but that messed up everything but i fixed it

IVotedBrexit (3)

How on earth do I use this, I'm brand new to this place

IVotedBrexit (3)

as in, I don't even know how to open the thing

P0GCHAMPB0i (44)

lol this is how much i posted loading stuff, BUT NICE WORK BOY NICE WORK I LIKED IT

Th3Coder (107)

(Kind of) fun fact: Even if you don't type anything, the placeholder will still be styled!

Th3Coder (107)

@JWZ6 pretty cool though! Also I like the upgrades :)

AsmiPahadia (2)

nice but it can improved more

SilvermoonCat (432)

nice! maybe add a toggle thing so that you can select if you want the buttons rainbow? It’s sorta hurting my eyes

LegendaryWolf (612)

try adding a color input for color selection.

JWZ6 (368)

@LegendaryWolf ik the color input, just not how to use it... sorry. I shall learn, though!

LegendaryWolf (612)

@JWZ6 invite me to this repl and I will teach how to use it

sojs (302)

CTRL+B, CTRL+I, and CTRL+U please!!!

JWZ6 (368)

@sojs sorry, but i don't know how to do that. I've heard that that's more complex, like matplotlib stuff thingies and yeah. I just hope you enjoy, das all

sojs (302)

@JWZ6, no, I have no idea what matplotlib is and you don't need it. I found this module that simplifies it but really you just listen for events and check to see if the crtl key is pressed. Like

document.addEventListener('keydown',(e)=>{
  if(e.which == <insert CTRL key keycode here>){
    window.ctrlkey=true
  }
  else if(e.which = <whateve it is for "b"){
    if(window.crtlkey){
      document.execcommand //or whatever it is
    }
  }
})
document.addEventListener('keyup',(e)={
  if(/* ctrl key thing agian */){
    window.ctrlkey = false;
  }
});

Find a much simpler answer here
})

JWZ6 (368)

@sojs done! look at my edit and keyboard shortcuts r done!

potatojs (842)

@JWZ6 matplotlib is a python library for data visualization...
there isn't really anything "complex" in javascript

Bookie0 (6113)

You should make it so that when you press bold, and press it again, it removes the bold (same for the others). Also add some CSS to make it look nicer! :D

JWZ6 (368)

@Bookie0 um I'm not very sure how to do that sorry...

Bookie0 (6113)

@JWZ6 well for the CSS you could customize stuff with colors, borders, hover, etc.

JWZ6 (368)

@Bookie0 um ok! that i can do!

JWZ6 (368)

@Bookie0 just did and i added a reset button for the font styles, (the least i could do)

Bookie0 (6113)

@JWZ6 ok that's pretty cool, but what about changing the default color of those buttons? :)

JWZ6 (368)

@Bookie0 um i hope that it's good now :)

edit: just made this for fun, not expecting to get popular, just wanted people to enjoy and like it, that's all

IntellectualGuy (772)

I have a few ideas for this, can you add me to the repl?

JWZ6 (368)

@Gh0stHack3r :) btw i changed the color thingy so u can use whatever color you want!

JWZ6 (368)

@Gh0stHack3r yay! I got nine updoots in only 4 hours (basically me happy)

proxyproggramer (0)

how the did you do that i am so jelous

Lilyphoenix (6)

WOW! How did you code ths?

JWZ6 (368)

@Lilyphoenix um nothing big, really

P0GCHAMPB0i (44)


Who are you talking to?