How to create Bold data in MySQL database text field? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create Bold data in MySQL database text field?

Is it possible to create bold text in a MySQL database text table field? If we are putting articles in our database and if we want to create bold titles and subtitles. Is this possible? I want to get those text filelds to a html page in django projects.

1st May 2020, 5:40 PM
ravindu poorna
ravindu poorna - avatar
6 Answers
+ 2
You could try to store the text with its html markup, like this "<b>name</b>". https://stackoverflow.com/questions/2037903/how-to-create-bold-data-in-mysql-database-text-field
2nd May 2020, 2:02 AM
Abdoul Hakim
Abdoul Hakim - avatar
+ 1
I see... Well I am not sure that it possible to do it throught th django admin. You could try to manipulate the DOM but I don't think that's what you want.
2nd May 2020, 2:03 PM
Abdoul Hakim
Abdoul Hakim - avatar
+ 1
I found a way. The solution is to use CKeditor. Follow this link if you need more details https://youtu.be/_eOSBbpFPpA
2nd May 2020, 2:09 PM
ravindu poorna
ravindu poorna - avatar
+ 1
That's true. This is a way better solution! Thank you for sharing
2nd May 2020, 2:12 PM
Abdoul Hakim
Abdoul Hakim - avatar
0
Dear abdoul, thank you for your answer 😍. But actually that's not my problem. I want a way to give text attributes such as bold,italic directly via the django admin panel. I want to check whether there is a way to do it without using your way.
2nd May 2020, 5:03 AM
ravindu poorna
ravindu poorna - avatar
0
You are welcome
2nd May 2020, 2:51 PM
ravindu poorna
ravindu poorna - avatar