Тёмный

Rich Text Editor with HTML, CSS and JS 

Omerko
Подписаться 1,8 тыс.
Просмотров 32 тыс.
50% 1

✦ HELPFUL LINKS:
- All Commands for Text Editor - mzl.la/3fhdgLN
✦ SUGGESTED VIDEO:
- Front End Web Development - • Front End Web Development
✦ INSTAGRAM: / omerko96
✦ BUSINESS: omerko1996@gmail.com

Наука

Опубликовано:

 

12 июн 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@Omerko
@Omerko Год назад
For deprecated API, be sure to watch this video - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_KiRU6yOtPM.html
@user-fp1sv3fo7u
@user-fp1sv3fo7u Год назад
I'm starting a new project now, so your tutorial is just a blessing for me! (it's 00:12 night, I don't now why so late...)
@marcusschebek6316
@marcusschebek6316 2 года назад
Great job man, thanks for sharing this with us👍
@Omerko
@Omerko 2 года назад
Thank you for nice words
@error_man8045
@error_man8045 Год назад
Very straightforward
@kevincatindoy4424
@kevincatindoy4424 2 года назад
thank you for this. Big help for me
@ahmedbakhach2490
@ahmedbakhach2490 3 года назад
The best and easiest explanation so far.
@Omerko
@Omerko 3 года назад
Thanks a lot! This means a lot to me.
@pandipatipavan3804
@pandipatipavan3804 2 года назад
@@Omerko Bro which editor you are going to use? And please make a video on how to setup the Sublime text editor for the programming languages and web development etc... Also try to explain about this editor too.
@Omerko
@Omerko 2 года назад
@@pandipatipavan3804 I am using Visual Studio Code, I guess that I can make a tutorial about it and how to set it up
@arthurlage5859
@arthurlage5859 2 года назад
awesome tutorial! thank you sooo much
@jaddielorzano5864
@jaddielorzano5864 7 дней назад
BIG THANKS!🎉
@eno3197
@eno3197 3 года назад
How can convert the html when send to the database. I don't want to have div tags on line breaks. Can I put or instead of div tags? I already tried innerText, innerHTML and textContent, but it shows a lot of divs or it doesn't show any html tag.
@Omerko
@Omerko 3 года назад
If you used contenteditable on main div itself, on editor, then inside, you can pass whatever you wish. You can add custom, upon some event, or loop trough each element and replace those with . You can even replace each div element with an ' '. There should also be Modules on npm, or plugins with more advanced editors, if you wish to use one and not build it from scratch.
@b612vitamini5
@b612vitamini5 Год назад
I am really asking for you. Are you KING. Are you BEST. İn my opinion you are the best. Because it is very short and very very helpful video tutorial. Thanks a lot.
@VulgoBe
@VulgoBe Год назад
Thank you so muuuuuuuuuuuuuuuch
@MrRahul15937
@MrRahul15937 3 года назад
Short and consice and covers every basic requirement.👍
@Omerko
@Omerko 3 года назад
Thanks!
@inessilva2039
@inessilva2039 Год назад
how do I save what's written to my database using a post api request so that when I do a get api request and show it on my page it looks the same as it was written in the first place?
@Omerko
@Omerko Год назад
You can grab it as a string, and save it in a field... You can turn it into a JSON if you wish, and later stringify again...
@inessilva2039
@inessilva2039 Год назад
@@Omerko yes, but with the bold, italic , etc properties
@Omerko
@Omerko Год назад
​@@inessilva2039 Well, those need to be wrapped with etc.. HTML elements... If you pulled ata with the string, and if you present those in a div, those will already be wrapped with it.. Try to inspect that part of the text.. You should see the elements wrapped around the text. Which means that if you use that just a s a string, it will give the same result, unless the spacing is cut off, then it won't have that "enter" space
@journeytothink5682
@journeytothink5682 3 года назад
great help thanks
@rohith2474
@rohith2474 3 года назад
Bro how to make page size à4 size or legal page
@user-cb8wd4rr6o
@user-cb8wd4rr6o 2 года назад
Все понятно! Такой вопрос, как вставить из буфера и отловить этот текст ???
@Omerko
@Omerko 2 года назад
I am sorry, but could you please post the same comment in English, so I could know, to answer you, Thanks!
@techhackz2897
@techhackz2897 2 года назад
Great Video ! In the documentation it shows execCommand() is depricated can anyone let me know the alternative of execCommand()
@Omerko
@Omerko 2 года назад
Yes, there are many comments on this video that talked about it, so maybe you can find a solution in the comments. Find the alternatives here - stackoverflow.com/questions/60581285/execcommand-is-now-obsolete-whats-the-alternative
@leonarddlima9763
@leonarddlima9763 2 года назад
Is it possible to add color picker and apply color to selected text.
@Omerko
@Omerko 2 года назад
If you wish to use a color picker, use input with a type of color, read the value to it and pass it to the element that you wish as a background or a normal color. That is my advice.
@nevillemwije5928
@nevillemwije5928 Год назад
great job
@Omerko
@Omerko Год назад
Thanks!
@RNBRO1
@RNBRO1 3 года назад
Thanks sir but what can i write a text inside of image?
@Omerko
@Omerko 3 года назад
Thanks! So idea for that text for the image, is not the text, but source for the image. So you would for example copy image url and pass into that text field in prompt that you get and after clicking OK, it should render that image on a screen if URL is correct.
@RNBRO1
@RNBRO1 3 года назад
@@Omerko thanks sir
@loicleray
@loicleray Год назад
RIP HEADPHONE USERS - Thanks for making this video though, very helpful!
@yacobee
@yacobee 3 года назад
execCommand is deprecated not work in any more !
@Omerko
@Omerko 3 года назад
Thank you for pointing that out. Here is change to that - developer.mozilla.org/en-US/docs/Web/API/Document/designMode I will make sure to make new video on this topic.
@techgaming4755
@techgaming4755 2 года назад
Document.execCommand() is now depricated and is not suggested for use when creating new websites. Nice tutroial though
@Omerko
@Omerko 2 года назад
Yes, it was also covered in previous comments, if you need help with it you can find it in one of the comments, not hard to implement, I will probably create tutorial for it soon as well.
@mdjulhashuddin1202
@mdjulhashuddin1202 3 года назад
how to add a table in it. Please Help
@Omerko
@Omerko 3 года назад
If you didn't go trough execCommand API - developer.mozilla.org/en-US/docs/Web/API/Document/execCommand Also, check this fiddle, maybe it can help you - jsfiddle.net/3c5Lwmeq/
@sergeylebedev1052
@sergeylebedev1052 8 месяцев назад
but execute command is depricated fuction.
@Omerko
@Omerko 8 месяцев назад
Take a look into pinned comment
@yibeltaltewachew32
@yibeltaltewachew32 2 года назад
This is great, Is there any way this works in textarea?
@Omerko
@Omerko 2 года назад
Well, no, you must use div as an editable field.. most applications out there will use a similar workflow
@farhatulsk
@farhatulsk 3 года назад
Can we save or download the content from that?
@Omerko
@Omerko 3 года назад
If you wish to take a look into Live Code Example, here is the URL for that - codepen.io/omerko96/pen/GRNwoQZ
@farhatulsk
@farhatulsk 3 года назад
@@Omerko no we can't even share the written content to anybody
@farhatulsk
@farhatulsk 3 года назад
@@Omerko but this is a best content but if you add download or share option then it will be the best content ever
@Omerko
@Omerko 3 года назад
@@farhatulsk How do you mean share written content? You mean project itself or to add option in a project?
@farhatulsk
@farhatulsk 3 года назад
@@Omerko share, print or download option like ms word
@nileshpawar5150
@nileshpawar5150 8 месяцев назад
Very nice video, But unfortunately this execCommand feature is absolate and it can be removed at any time in future. We need to find other alternative
@Omerko
@Omerko 8 месяцев назад
Check my pinned comment
@nileshpawar5150
@nileshpawar5150 8 месяцев назад
@@Omerko thank you
@lesleymncina4496
@lesleymncina4496 11 месяцев назад
@shan328
@shan328 Год назад
Just spent half an hour learning and implementing this only to discover that execCommand() has been deprecated so it's not working. 😢😢😢
@monj3876
@monj3876 Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eOEPItpHIb8.html
Далее
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 890 тыс.
Tragic Moments 😥 #2
00:30
Просмотров 2 млн
Subtle, yet Beautiful Scroll Animations
5:04
Просмотров 1,6 млн
Lexical - the Hot New JS Rich Text Editor 🔥
6:22
Просмотров 28 тыс.
The Story of Next.js
12:13
Просмотров 532 тыс.
React и Next js убивают фронтенд!
9:11
ПК с Авито за 3000р
0:58
Просмотров 1,4 млн