ExtJS3.0与KindEditor4.1.2整合

Extjs kindeditor整合 demo Extjs 整合 kindeditor例子,压缩包中的内容全,使用的是kindeditor 4.X extjs 3.1 立即下载
/**
 * 将KindEditor4.1.2 功能封装到命名空间“KE“。
 * @author shuyuan
 */
Ext.namespace("KE");
KE.app = (function() {
	return {
		/**
		 * 初始化editor
		 * @param initParam 初始参数。
		 * @returns
		 */
		init : function (initParam){	
			setTimeout(function(){
				KindEditor.create('#' + initParam.renderTo, initParam);
			}, ((!initParam.delayTime || initParam.delayTime) <= 0 ? 5 : initParam.delayTime));
		},
		/**
		 * 获取创建后的editor对象。
		 * @param renderTO textarea的ID,根据此参数查找已创建的editor对象
		 * @returns
		 */
		getEditor : function(renderTO) {
			var editors = KindEditor.instances;
			for(var i = 0; i < editors.length; i++){
				if(editors[i].renderTo && editors[i].renderTo === renderTO){
					return editors[i];
				}		
			}	
		}
	};
})();


var contentFormPanelCn = new Ext.form.FormPanel({
	id : 'contentFormPanelCn',
	title:mpdLang.chinese, //'中文',
	layout : 'fit',
	bodyStyle:"border:0px;padding:0px",
	defaultType : 'textfield',
	items : [{
		xtype:'textarea',
		id:'contentCn',
		width:'auto',
		height:'auto'
	}],
	listeners:{
		'render':function(){
			KE.app.init({
				renderTo : "contentCn",
				delayTime : 1,
				readonlyMode : false,
				resizeType : 0,
				width : '100%',
				minChangeSize : 20,
				imageTabIndex : 1,
				uploadJson : "",
				readonlyMode : true
			});
		}			
	},
	buttons:[{
		text:commonality_save,//保存
		id:"btnEditContentCn",
		handler : function() {
			var html = KE.app.getEditor('contentCn').html();//取值
		}
	}],
	buttonAlign:'center'
});


Extjs+Kindeditor的例子 立即下载

相关推荐

Extjs 集成kindeditor

NULL 博文链接:https://daoshud1.iteye.com/blog/974142

springboot + extjs +kindeditor富文本编辑器整合+ 解决跨域问题步骤

springboot + extjs6 +kindeditor富文本编辑器整合+ 上传图片解决前后端分离跨域问题步骤 最近在项目中遇到使用富文本编辑器的情况,尝试使用ueditor、wangeditor都以上传图片跨域失败告终,只有kindeditor成功。 基本环境:springboot、extjs6、前后端分离(前端网址:http://localhost:1841 后端网址:http://localhost:9191) 现对整过程介绍如下: 一、Extjs 整合kindeditor 1.引入.

lianlang的专栏 977

kindeditor-4.1.2

kindeditor-4.1.2kindeditor-4.1.2kindeditor-4.1.2

Ext中使用KindEditor方法

老套路,先来效果图 再来源代码 index.php ExtJS.com Forums index.js Ext.onReady(function(){ var win = new Ext.Window({ tit

phiberg的专栏 5682

GD32模拟IIC读写DVC1124

GD32模拟IIC读写集澈AFE芯片DVC1124

ponyma_的博客 1233

基于STM32与毫米波雷达的非接触式睡眠监测系统

物联网和嵌入式系统技术正在推动医疗健康设备的智能化发展。通过传感器网络采集生理信号,结合信号处理算法实现健康监测已成为主流技术方案。毫米波雷达凭借其非接触检测特性,在呼吸、心率等生命体征监测中展现出独特优势。STM32系列MCU凭借丰富外设和低功耗特性,成为医疗级嵌入式设备的首选平台。本系统整合60GHz毫米波雷达、红外测温与无线传输模块,构建了完整的睡眠质量评估解决方案,其硬件架构设计、信号处理算法和低功耗优化策略对可穿戴医疗设备开发具有参考价值。

weixin_36369848的博客 622

ExtEditor:基于KindEditor的ExtJS富文本编辑器增强插件

ExtEditor:基于KindEditor的ExtJS富文本编辑器增强插件 项目介绍 ExtEditor是一款专为ExtJS设计的富文本编辑器插件,它弥补了ExtJS默认富文本编辑器的功能限制。通过集成广受好评的KindEditor框架,ExtEditor提供了更加强大且易于使用的编辑能力,适用于需要在ExtJS应用中集成高级文本编辑功能的开发者。 项目快速启动 要快速启动ExtEditor,首...

gitblog_00988的博客 820

STM32 BLDC无刷电机霍尔信号捕获与换相控制实战解析

本文深入解析了STM32如何实现BLDC无刷电机的霍尔信号捕获与换相控制。详细阐述了硬件接口配置、定时器霍尔传感器模式的使用、抗干扰的滤波器与软件容错设计,以及中断服务与换相逻辑的实战代码。重点解决了信号抖动、换相不准等常见问题,旨在帮助开发者构建稳定可靠的电机驱动基础。

weixin_29193259的博客 375

ExtJs 集成kindeditor

首先需要引入 kindeditor类  // 引入 extjs // 引入 kindeditor        在需要出现编辑器的地方加入如下js代码:   { xtype: 'textareafield', region: 'center', name: 'content

LinBSoft的专栏 4739

PAT|中国大学MOOC-浙江大学翁恺-C语言程序设计习题集(更新中)

##2-0. 整数四则运算 时间限制:400 ms 内存限制:65536 kB 代码长度限制:8000 B 判题程序:Standard 作者:乔林(清华大学) 本题要求编写程序,计算2个正整数的和、差、积、商并输出。题目保证输入和输出全部在整型范围内。 输入格式: 输入在一行中给出2个正整数A和B。 输出格式: 在4行中按照格式“A 运算符 B = 结果”顺序输出和、差、积、商。 输入样例: 3 ...

小鱼波波波 6万+

Pcileech(DMA)开源项目简述

希望大DMA家能正确认识FPGA,正确使用DMA技术,对于市场上各类伪装成花里胡哨设备的FPGA板卡它的本质是不会变的,不要上当受骗。

2301_79773847的博客 5985

[转]ExtJS3.0与KindEditor4.1.2整合

原文地址:http://blog.csdn.net/resigshy/article/details/7937021 ExtJS与KindEditor整合的方式。 [javascript] view plain copy print? /**   * 将KindEditor4.1.2 功能封装到命名空间“KE“。   * @author shuyuan   */   Ext.namespa...

weixin_34228617的博客 164

AUTOSAR EcuM模块介绍

AUTOSAR EcuM概述 AUTOSAR EcuM全称是Autosar ECU State Manager,位于Autosar BSW中System Service模块中,是一个独立于硬件的模块。 其主要作用是管理ECU上下电启动的状态,具体为: 初始化启动操作系统所需要的BSW(Basic Software)模块 为睡眠阶段和随后的唤醒完成微控制器的配置准备 管理ECU上的所有唤醒事件(EcuM通过唤醒验证协议验证已发生的唤醒,区分真实的唤醒事件,防止误唤醒) EcuM支持的特性列表 EcuM具有

酒无忧的博客 3006

extjs mvc 整合kindeditor

前面用extjs整合ckeditor费了好多功夫,后来用了kindeditor个人觉得更好用些,在这里记录一下。 1、首先要引入 Kindeditor-all-min.js文件 type="text/javascript" src="${ctx}/js/kindeditor/kindeditor-all-min.js"> 2、创建kindeditor对象 //创建edito

HappySorry的专栏 1044

IMX6ULL---从零开始移植uboot-imx

IMX6ULL---从零开始移植uboot-imx

weixin_42162924的博客 1038

解密大文件:Python中的AES-128-CBC解密实践

本文介绍了使用Python的pyca/cryptography库处理AES-128-CBC加密大文件的方法。详细讲解了密钥/IV设置、加密/解密流程及PKCS7填充操作,建议采用分块处理(如2GB)优化性能。同时强调了CBC模式的数据完整性风险,推荐考虑AES-GCM等认证加密模式,并指出填充顺序和块大小选择对处理效果的影响。通过具体代码示例,展示了如何安全高效地加密解密数百GB文件。

2501_90323865的博客 139

JSP版的完善KindEditor在线编辑器(带附件上传与图片按日期分类管理功能)

在此之前我一直都是在用FCKEditor在线编辑器,当然也有用过其它在线编辑器如eWebEditor,tinyMCE,CuteEditor,jHtmlArea等等,但在最终项目发布的时候并没有采用它们,因为它们要不是皮肤呆板,就是配置太烦琐,或是功能太少、浏览器兼容性不好等等。去年一个偶然的机会让我认识了KindEditor这款在线编辑器,正如它的名字那样这是款友好的编辑器,它不仅体积小配置简单,

ZKLxuankai的专栏 6484

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

kindeditor之二

在此之前我一直都是在用FCKEditor在线编辑器,当然也有用过其它在线编辑器如eWebEditor,tinyMCE,CuteEditor,jHtmlArea等等,但在最终项目发布的时候并没有采用它们,因为它们要不是皮肤呆板,就是配置太烦琐,或是功能太少、浏览器兼容性不好等等。去年一个偶然的机会让我认识了KindEditor这款在线编辑器,正如它的名字那样这是款友好的编辑器,它不仅体积小配置简...

forlab的专栏 119

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Extjs中Kindeditor无法正常显示、无法渲染问题解决

Extjs中使用kindeditor可能会出现Ext窗口(或component)已经显示完成但是kindeditor却无法显示。导致该问题的原因可能是因为extjs组件由于渲染过程比较慢,而kindeditor可能在指定节点创建之前就进行渲染,导致节点未找到等问题,  “knode[0] is undefined”这个错误的产生是因为在ext组件未渲染完成时,kindeditor就开始渲

phiberg的专栏 4541

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

struts2 + extjs3.4 中使用kindeditor4.1.4实现上传功能

本人文笔不好,也是菜鸟一只,如果是大神请绕道,目的只在于交流 这几天做的并且测试通过,给以后搞开发的朋友不必在这个地方纠结(没什么技术含量而且很花时间)。废话不说,直接进入主题   1.      首先要对kindeditor有一定的了解(最好下载一个API手册来看看)   在你的js文件中载入kindeditor: //载入KindEditor var editor1; func

furingsnill的专栏 776

Ext JS 4.1.1整合Kindeditor

整合Kindeditor比CKEditor要简单许多许多(CKEditor与Ext JS的结合不是非常好),详细代码如下: [code="js"] Ext.define('GB.view.CKeditor', { extend : 'Ext.Component', alias : 'widget.ckeditor', initComponent : function() { ...

HNsnopy的专栏 252
上一篇: ExtJs combo的二级联动
下一篇: android ListView 多线程异步加载Url图片
java_wliang
博客等级 码龄15年 19粉丝 82原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值
⌂ 换网址