带有contorl按钮的文本区域 [英] Text area with contorl button

查看:70
本文介绍了带有contorl按钮的文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个带有最小控制按钮的textarea,如粗体按钮,可以粗体显示所选文本,按钮可以斜体显示所选文本,还有一个按钮,用于为选定文本加下划线



我尝试了什么:



i不知道如何用按钮

解决方案

在javascript / jQuery中使用内置的浏览器命令:



javascript - 将所选文本设为粗体/非粗体 - 堆栈溢出 [ ^ ]

i want to create a textarea with minimum control button like bold button that can bold a selected text and a button to italic a selected text and also a button to underline a selected text

What I have tried:

i have no idea how to create such textarea with button

解决方案

Use built in browser commands in javascript/jQuery:

javascript - Make selected text bold/unbold - Stack Overflow[^]


这篇关于带有contorl按钮的文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆