ckeditor

How to add a custom paragraph format in CKEditor

↘锁芯ラ 提交于 2020-01-30 04:34:30
问题 In my project I have a requirement to remove the paragraph format like "Address" and "Formatted" from the drop down and to add a new custom format called "Links" which would be Arial, 14px, bold, red. Is it possible to add custom paragraph format in CKEditor? 回答1: Use CKEDITOR.config.formatTags to specify some new formatting: CKEDITOR.replace( 'editor1', { format_tags: 'p;h2;h3;pre;links', // entries is displayed in "Paragraph format" format_links: { name: 'Links', element: 'span', styles: {

怎样做出一个富文本框的样子

倾然丶 夕夏残阳落幕 提交于 2020-01-29 15:21:07
上次做个人博客项目的时候用到富文本框,查看了一些资料后,勉强做出了效果,下面把我的步骤给大家 1.效果 2.下载富文本的js包。 进入下面的链接。 https://ckeditor.com/cke4/builder‘ 2.1选择下面的3种模式之中的一个(基本,标准,丰富) 2.2选择插件或皮肤 2.3 选择语言 2.4 最后下载即可 3.使用 3.1下载完成后是一个叫ckeditor的文件夹 将其放到static下即可(我是使用的springboot) 3.2 进入你需要使用的页面,将ckeditor/ckeritor.js导进去 < script src = "../../static/ckeditor/ckeditor.js" > < / script > 3.3 然后将下面的语句放到你想要写东西的地方 < textarea name = "editor01" > < / textarea > 3.4 最后添加下面的语句即可 < script > CKEDITOR . replace ( 'editor01' ) ; < / script > 这个语句要放到上一个语句的后面,不然每效果 文章到这里就结束了,不懂的就留言吧 来源: CSDN 作者: 黄 坤 链接: https://blog.csdn.net/m0_45025658/article/details

Laravel + Laravel-admin 搭建网站后台

醉酒当歌 提交于 2020-01-29 05:00:39
本地环境: laravel版本: laravel-admin版本: laravel-admin优秀扩展包!! 一、安装配置Laravel6.11.0 1.安装 composer create-project --prefer-dist laravel/laravel blog 2.改时区 'timezone' => 'PRC' 3.改语言 'locale' => 'zh-CN' 4.改debug 'debug' => env('APP_DEBUG', true) APP_DEBUG=true 5.改APP_URL 'url' => env('APP_URL', 'http://test.io'), APP_URL=http://test.io 6.新增数据库,并修改数据库配置 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=test1 DB_USERNAME=root DB_PASSWORD=root 7.修改日志 laravel5.5+: 'log' => env('APP_LOG', 'daily'), 'log_max_files' => 30, laravel6+中日志更新了: 所有的应用程序日志系统配置都位于 config/logging.php 配置文件中!!! 'channels' => [

Event for ckeditor content changed

安稳与你 提交于 2020-01-29 04:33:31
问题 If possible, how can we to the event of ckeditor's content being changed? For instance, there's some text already inserted into the ckeditor's content aka textarea when the page is opened. Afterwards I type something more or delete some of that text. Is there some event that's fired I can get to to change a variable when the text is changed? I have this for regular textareas: $("input,textarea").on("input", function () { booleanvar= true; }); Saw a possible solution somewhere that had this: $

软件重装

送分小仙女□ 提交于 2020-01-28 22:22:27
目录 ■ 已卸载有用app ■ 软件重装 1.python 2.MySQL(8.0.18) 3.ckeditor 4.福昕pdf 5.谷歌访问助手 ■ 已卸载有用app 1.步步行程助手:别人分享旅游城市(国内国外)记录 2.行程助手:同上 ■ 软件重装 1.python 下载: https://www.python.org/downloads/windows/ 选择:Download Windows x86-64 executable installer 勾选:add to path C:\Users\Administrator>python -V Python 3.7.6 2.MySQL(8.0.18) 参考文章: https://blog.csdn.net/qq_37350706/article/details/81707862 ①下载: https://dev.mysql.com/downloads/mysql/ 选择:Windows (x86, 64-bit), ZIP Archive login/sign up → 下载 → 解压 (其中my.ini和data刚解压时是没有的) ②初始化:创建配置文件 my.ini ,内容如下 [mysqld] # 设置3306端口 port=3306 # 设置mysql的安装目录 basedir=D:\MySQL\mysql-8.0

fckeditor 配置

China☆狼群 提交于 2020-01-28 03:29:18
因为下载下来的压缩包里面有包含很多在我们使用时,用不到的,不删除也行。看个人喜好下面以PHP为例,进行程序瘦身 删除所有”_”开头的文件和文件夹 删除FCKeditor的目录下: fckeditor.afp fckeditor.asp fckeditor.cfc fckeditor.cfm fckeditor.lasso fckeditor.pl fckeditor.py htaccess.txt license.txt 删除语言包editor\lang中除中文和英文以外的语言 删除skin目录下除默认皮肤以外的文件夹 filemanager/browser/default/connectors/目录下除php以外的文件 filemanager/upload/目录下除php以外的文件 如果你不想要表情包 删除 editor\images\smiley下的msn文件夹及表情按钮 好了 精简完毕 我们通常把编辑器用以个文件夹存放、通常情况下 我们可以明白为fckeditor或editor 找到里面两关键文件 fckeditor_php4.php fckeditor_php5.php 这两个文件的代码相差不了多少,很显然跟php版本有关 打开这两个文件 XML/HTML代码 function FCKeditor( $instanceName ) { $this->InstanceName

fckeditor配置

牧云@^-^@ 提交于 2020-01-27 09:30:01
原文地址 http://hi.baidu.com/huqiwen/blog/item/7d36b15113fddd1e377abe7d.html 由于FckEditor for java 2.4相对于2.3而言做了许多改变,这些改变使得我们的Fckeditor配置起来更方便。例如: 基础包名从:com.fredck.FCKeditor 改为 net.fckeditor . 文件上传SimpleUploaderServle整合到了ConnectorServlet里面,WEB,XML的配置就简单多了,下面通过一个实例说明配置详细步骤 1、首先登陆 www.fckeditor.net/download 下载FCKeditor的最新版本,需要下载2个压缩包,一个是基本应用。另一个是在为在jsp下所准备的配置。 最新版本为:FckEditor2.6.3和FckEditor for java 2.4 FCKeditor 2.6.3下载地址:sourceforge.net/project/downloading.php 具体下载地址: http://easynews.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.6.3.zip FCKeditor for Java 下载地址:sourceforge.net/project

FCKEditor配置

做~自己de王妃 提交于 2020-01-26 19:53:53
fckeditor精简之道  1、临时文件及文件夹删除:从根目录下开始删除一切以“_”开头的文件及文件夹,因为他们为临时文件和文件夹。删除这类临时文件及文件夹之后,我们还要删除一些根目录下的多余文件,根目录下我们只保留fckconfig.js(配置文件)、 fckeditor.js(js方式调用文件)、fckeditor.php(php方式调用文件,新版本通过该文件统一调用php4或者php5的调用文件,fckeditor_php4.php/fckeditor_php5.php你可以根据自己服务器使用的情况删减,建议都保留)、 fckeditor_php4.php(php4的调用文件)、fckeditor_php5.php(php5的调用文件)、 fckstyles.xml(样式)、fcktemplates.xml(模板)文件和editor文件夹。 2 修改配置文件 FCKConfig.AutoDetectLanguage = false ; (此句作用为自动检测语言,默认为true,即表示编辑器会根据系统语言自动检测加载相应的语言,我们将其改为false,不让其检测) 然后将FCKConfig.DefaultLanguage = 'en'; (编辑器默认语言)改为简体中文"zh-cn"。 FCKConfig.TabSpaces = 0 ; 改为FCKConfig

Numbered Lists not working using PHP, CKEditor and Outlook

感情迁移 提交于 2020-01-25 21:01:31
问题 When i write a text using CKEditor in my application and format it as a numbered list it is displayed correct like Answers to your questions: 1. First Answer 2. Second Answer and the html behind is <p><span style="color:#1f497d">Answers to your questions:</span></p> <ol> <li><span style="color:#1f497d">First Answer</span></li> <li><span style="color:#1f497d">Second Answer</span></li> </ol> but when I send this text in an email outlook ( my current Version is 2016) is not showing the numbers

Numbered Lists not working using PHP, CKEditor and Outlook

夙愿已清 提交于 2020-01-25 21:01:14
问题 When i write a text using CKEditor in my application and format it as a numbered list it is displayed correct like Answers to your questions: 1. First Answer 2. Second Answer and the html behind is <p><span style="color:#1f497d">Answers to your questions:</span></p> <ol> <li><span style="color:#1f497d">First Answer</span></li> <li><span style="color:#1f497d">Second Answer</span></li> </ol> but when I send this text in an email outlook ( my current Version is 2016) is not showing the numbers