Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi I trying Create Website with asp.net (asp.net core mvc). I need Create simple text editor. then save too the database.
I couldn't find a proper tutorial for this. Either it was too simple and didn't have the facilities I wanted, or it was too complicated and unclear and I didn't understand it.

What I have tried:

I am new on this section. please help.
Posted
Updated 25-Jul-23 5:21am
v3
Comments
Richard MacCutchan 24-Jul-23 3:47am    
"I need Create simple text editor. I want this text editor can get the image, video and link too."
You can have simple, or you can have image, video etc. You cannot have both.
Dave Kreskowiak 24-Jul-23 9:32am    
Richard is correct. What you want is NOT simple at all. It's very difficult to get right and even control vendors you hand a bucket of money to don't get it right either. You're mapping a visual text editor over managing HTML completely in javascript code. You WILL run into formatting issues and stuff that a user just cannot make look correct no matter what they do.
Member 11400059 25-Jul-23 1:26am    
you are right. and sorry for that. I redesign my web page. now I get and show the image and video separately. Now I only need the text editor for work with text. (I think now is simple). and I am sorry again. I edit my post right now.

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

Just saying "I had a quick google but can't find exactly what I want" doesn't help you, particularly when we have no idea what you found or why you rejected it.
Sorry, but you are going to have to decide exactly what you need it to do, and then either google for the various tasks involved, or more probably write your own specification and start designing your own code.
 
Share this answer
 
Google finds lots of possibilities: html text editor - Google Search[^]
 
Share this answer
 
Well, there are lots of resource which can help you to develop editor using CSS / HTMl and JS.
Here is the code reference.

<!DOCTYPE html>
<html>
<head>
    <title>Simple Text Editor</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }

        textarea {
            width: 100%;
            height: 300px;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <h1>Simple Text Editor</h1>
    <textarea id="editor"></textarea>

    <script>
        // JavaScript code to handle the text editor functionality
        const editor = document.getElementById('editor');

        // Save the content to local storage whenever the user types or pastes something


Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900