百度编译器的使用

@{
    ViewBag.Title = "TravelNotes";
}


<link href="~/Content/trvalYouji.css" />
 
<script type="text/javascript" charset="utf-8" src="~/utf8-asp/ueditor.config.js"></script>

<script type="text/javascript" charset="utf-8" src="~/utf8-asp/ueditor.all.min.js"></script>

<script type="text/javascript" charset="utf-8" src="~/utf8-asp/lang/zh-cn/zh-cn.js"></script>
<form action="/Home/TravelNotes" method="post">
    <script id="editor" type="text/plain" name="gdesc" style="width:100%;height:350px;">
    </script>
    <input type="submit" name="name" value="提交" />
</form>
 
 
<script type="text/javascript">

    //实例化编辑器

    var ue = UE.getEditor('editor', {

        toolbars: [

            [

                'undo', //撤销

                'bold', //加粗

                'underline', //下划线

                'preview', //预览

                'horizontal', //分隔线

                'inserttitle', //插入标题

                'cleardoc', //清空文档

                'fontfamily', //字体

                'insertcode', //代码语言

                'fontsize', //字号

                'paragraph', //段落格式

                'simpleupload', //单图上传

                'insertimage', //多图上传

                'attachment', //附件

                'music', //音乐

                'inserttable', //插入表格

                'emotion', //表情

                'insertvideo', //视频

                'justifyleft', //居左对齐

                'justifyright', //居右对齐

                'justifycenter', //居中对

                'justifyjustify', //两端对齐

                'forecolor', //字体颜色

                'fullscreen', //全屏

                'edittip ', //编辑提示

                'customstyle', //自定义标题

                'template', //模板

            ]

        ]

    });

</script>
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

你的美,让我痴迷

你的好,我会永远记住你的。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值