tinyMCE - 在文本区域中编辑源代码 [英] tinyMCE - source code editing in a textarea

查看:38
本文介绍了tinyMCE - 在文本区域中编辑源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在玩 MCE,我想知道是否有可能让用户在帖子中输入源代码,就像这个表单中的 101010 按钮一样.

I'm playing around with MCE, I was wondering if there was the possibility of letting the user enter source code into a post, much like the 101010 button in this form.

推荐答案

你需要在初始化代码中添加 plugins: "code" 如下:

You'll need to add plugins: "code" to the initialization code as follows:

tinymce.init({
    plugins: "code"
});

https://www.tinymce.com/docs/plugins/code/

这篇关于tinyMCE - 在文本区域中编辑源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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