ckeditor

Use Javascript variable in object name? [duplicate]

北城以北 提交于 2019-11-26 21:43:16
问题 This question already has answers here : Dynamically access object property using variable (13 answers) Closed 5 years ago . I am using CKEditor, and, when referring to the CKEditor instance, I need to use a variable. But, since calling the instance is a object, I am really not sure how to do this. I am using: CKEDITOR.instances.textarea123.insertHtml('<p>Whatever</p>'); The issue is, I need 123 to be a variable, because I need to change the instance based on the editor page that is loaded.

How can you integrate a custom file browser/uploader with CKEditor?

梦想的初衷 提交于 2019-11-26 21:08:48
The official documentation is less than clear - what's the correct way to integrate a custom file browser/uploader with CKEditor? (v3 - not FCKEditor) Don Jones Start by registering your custom browser/uploader when you instantiate CKEditor. You can designate different URLs for an image browser vs. a general file browser. <script type="text/javascript"> CKEDITOR.replace('content', { filebrowserBrowseUrl : '/browser/browse/type/all', filebrowserUploadUrl : '/browser/upload/type/all', filebrowserImageBrowseUrl : '/browser/browse/type/image', filebrowserImageUploadUrl : '/browser/upload/type

How to enable image upload support in CKEditor 5?

耗尽温柔 提交于 2019-11-26 20:43:56
I will use the ckeditor v5 into my project. I´ve trying to use the image plugin, but I don´t find enough informations about it. If you see the Demoe here , you easily upload images with Drag&Drop. But when I will try it with the download ballon zip nothing happens when I try to Drag&Drop a image. There is also no error. Is there a way to use this image support in the downladable variant? Yes, image upload is included in all the available builds. In order to make it work, though, you need to configure one of the existing upload adapters or write your own. In short, upload adapter is a simple

CKEditor: Customized HTML on inserting an image

柔情痞子 提交于 2019-11-26 20:39:53
问题 I'm using CKEditor 3.5 to provide WYSYWYG editing in a website. When inserting an image you can provide width and height of the image, which results in HTML like follows: <img alt="" src="/Images/Sample.png" style="width: 62px; height: 30px; " /> Since this does the resizing in the browser and in other places on the same website I use Nathanael Jones' Image Resizing Module, I'd like to get the following output instead: <img alt="" src="Images/Sample.png?width=62&height=30" /> Is there an easy

Set cursor to specific position in CKEditor

♀尐吖头ヾ 提交于 2019-11-26 20:17:45
Is there a way to set the cursor position to a known index inside CKEditor? I want to do this because when I change the html inside the editor it resets the cursor to the start of the inserted element, which is a problem as I'm changing the content on the fly as the user types. If I know that I want to set the cursor back to a known character position, say 100, inside the editor, is this possible? (I asked a related question but I think I was overcomplicating the issue with example code.) The basic way of setting selection is by creating a Range , setting its position and selecting it. Note :

CKEditor strips <i> Tag

久未见 提交于 2019-11-26 19:55:12
I'm trying to find a solution to avoid CKEditor, but also the older FCKeditor strips out any <i> tag from previously inserted content to the db. Case: I insert html content to the db, some content contain the <i> elements. I do this with the CKEditor. Everything works perfect and the content shows up on the webpage. But when i want to edit the previously inserted content, the <i> elements are missing. In my specific case i use: <i class="fa-icon-fullscreen fa-icon-xxlarge main-color"></i> Of course if i disable the editor, the content shows up just fine in the textarea. Mike Peterson When the

CKEditor instance already exists

纵然是瞬间 提交于 2019-11-26 19:35:17
I am using jquery dialogs to present forms (fetched via AJAX). On some forms I am using a CKEditor for the textareas. The editor displays fine on the first load. When the user cancels the dialog, I am removing the contents so that they are loaded fresh on a later request. The issue is, once the dialog is reloaded, the CKEditor claims the editor already exists. uncaught exception: [CKEDITOR.editor] The instance "textarea_name" already exists. The API includes a method for destroying existing editors, and I have seen people claiming this is a solution: if (CKEDITOR.instances['textarea_name']) {

实用的东西

南笙酒味 提交于 2019-11-26 19:22:14
项目过程中所遇到的各种问题记录 编辑器篇: FCKeditor相关知识及各种常见使用问题 FCKeditor自定义上传路径配置 使用FCKeditor生成静态分页HTML 图表篇: 有关MSChart的一些小技巧 asp.net上不错的图表选择—FunsionCharts ORM篇: 使用NHibernate配置对象实体的一些小问题 有关NHibernate查询封装 部署篇: 项目部署过程中那些纠结的问题-IIS 项目部署过程中那些纠结的问题-SQLServer 工具篇: .NET开发时常用的工具类库(附一个C#和VB.NET之间互传的小工具) 转载于:https://www.cnblogs.com/xiaoshuai/archive/2010/12/25/1916696.html 来源: https://blog.csdn.net/weixin_30221425/article/details/99059025

Copying rich text and images from one document to MIME in another document

↘锁芯ラ 提交于 2019-11-26 18:24:45
问题 I have a solution for copying rich text content from one document to MIME in another document. See http://per.lausten.dk/blog/2012/12/xpages-dynamically-updating-rich-text-content-in-a-ckeditor.html. I use this in an application as a way for the user to insert content templates in a new document and have the content appear on-the-fly in the CKEditor. The problem is that inline images are not included in the copying - only a reference to temporary storage of the images. This means that the

How do I programmatically set default table properties for CKEditor?

廉价感情. 提交于 2019-11-26 16:44:08
问题 I am trying to set up the default properties of table that is created inside CKEditor. For example is there a way to make sure that the attribute border is 0 not 1, or the width is by default set to 100%. 回答1: Here you go. dialogDefinition event solves the problem: CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'table' ) { var info = dialogDefinition.getContents( 'info' ); info.get( 'txtWidth' )[