✦ 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
@@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.
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.
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.
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.
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?
@@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
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
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.
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.
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.
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.
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/