问题标签 [ckeditor4.x]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 为什么 CKEditor 的嵌套小部件在我的 Drupal 构建中不起作用?
看到 CKE 4.4+ 现在可以使用嵌套小部件,我感到非常兴奋。我通读了这个问题并尝试了它 - 太棒了。奇怪的是,它不适用于使用 CKEditor 模块的我的 Drupal 站点。
所以,我得到了什么:
该模块使用 CDN,提供 CKE 4.5.1 (//cdn.ckeditor.com/4.5.1/full-all)。
我设置了一个模块来提供 simplebox 插件(取自工作开发 repo 示例):
它为我提供了激活插件:
我的工具栏上提供了插件按钮:
单击它,将创建标记。但奇怪的是,添加另一个嵌套在里面是不可能的:
任何想法我做错了什么?
javascript - Onclick 功能在 ckeditor 中不起作用
我正在使用 CKEditor 4.5.1 版本,我使用 CK Editor 来查看目的,并且我放了一些 onclick 函数来显示一些详细的运行时间
但是现在当内容加载到 CKEditor 时,它会将我的 onclick 函数转换为
正如您在上面看到的,它将我的 onclick 函数转换为 data-cke-pa-onclick 函数。
我如下实例化CKEditor,
请为此指导我。我也尝试过CKEDITOR - 如何添加永久 onclick 事件?但未能成功。
ckeditor - ckeditor toolbar doesn't show in asp.net masterpage scenario
I have an asp.net site, .net 4 framework. I'm trying to get the ckeditor up and running. Sorry, I'm a bit new to the ckeditor. There is a quick start guide here that shows you how to implement: http://docs.ckeditor.com/#!/guide/dev_installation
I originally thought the editor wasn't showing the toolbar. However, after further debug, I believe the ckeditor isn't showing at all, and in fact, the textarea is still all that is showing.
I'm using the same code as on the example in the website. I've reposted that here:
I've included the script ckeditor.js script this way:
I'm sure I'm making a simple mistake. Any help is appreciated.
Thanks! Bob
javascript - CKEditor : 通过 Javascript 切换到源代码视图
我需要一种方法让我的 CKEditor 通过配置选项加载到“源”视图中,或者能够通过 javascript 方法将其设置为“源”视图。
默认情况下,CKEditor 加载到所见即所得视图中,但我需要默认显示 HTML。
我在 CKEditor 上搜索了这里的档案以及开发人员的文档,但我找不到我的答案。
ckeditor - CKEditor 4.5.1 - 粘贴到不同的页面和浏览器时避免删除样式属性
我们使用的是CKEditor 4.5.1 版,粘贴带有背景和内联样式的表格时出现问题。
以下是我们尝试复制和粘贴的代码:
这在以下情况下工作正常:
- 仅从 chrome 复制和粘贴到 chrome 同一页面。
- chrome to FF - 仅在右键单击并粘贴时有效
- chrome 到 IE,但它添加了一些内联样式,如边框图像:无;
- Firefox 到 FF,FF 到 IE。
- IE 到 IE。
它在以下情况下不起作用:
- 从chrome复制粘贴到chrome的另一页,chrome到ff,chrome到ie
- FF转镀铬
- IE 到 chrome,IE 到 FF。
IE = Internet Explorer,FF = 火狐
这也可以在下载的示例页面(ckeditor\samples\index.html)中重现。
我的build-config.js 的链接。
以下是 CKEditor 配置设置:
请让我知道如何处理这个问题。
ckeditor4.x - Drag image into CKEditor 4 (NO upload)
I'd like to have an image or div that I can drag and drop into the CKEditor 4. How can I achieve this?
My DOMElement has the full path to the image - pretend it is an with a src attribute. The image has alredy been uploaded to the server, so all I want to do is get the URL of the image being dragged into the CKEditor and insert an image tag with the scr set.
I am listening to both drop and paste events, but my data is always empty...
Any ideas?
internet-explorer - CKEditor - IE 中的 setReadOnly 权限被拒绝
我仅在 IE 浏览器中的 setReadOnly() 上收到权限被拒绝错误。深入研究 ckeditor.js,看起来可编辑的 HTML 正文元素给出了权限被拒绝错误。
我已经在 FireFox 和 Chrome 上尝试过,它们都可以正常工作。
这是 ckeditor 的一个已知问题吗?
谢谢
javascript - CKEditor 图标路径不是 URLEncoded
我目前正在将 CKEditor 4 用于桌面应用程序,我的问题是工具栏的所有图标都没有显示。这样做的原因是,当工具栏元素生成时,它会找到带有图标的文件夹的路径,并放置一个样式标签来设置每个按钮的背景。路径中的文件夹之一包含括号,这会导致 CSS 无效(例如:)background-image: url(file///C:/ProgramFiles(x86).../icons/;
。我的问题是,有谁知道这个 HTML 是在哪里生成的,以便我可以对它进行 url 编码并避免这个问题?
javascript - CKEditor divarea 插件在带有 Safari 8 的 iOs 设备上无法正常工作
我使用带有divarea插件和“极简主义”皮肤的CKeditor (vers.4.5.1) 。必须能够更改所选文本的字体大小。
当我在 Safari 中使用 iOS 8 在 iPad 中打开我的页面时,我选择文本并单击 FontSize 菜单,它会出现,并且在我单击特定字体大小后没有更新文本大小,但是光标插入符号返回到我不知道的某个位置以前不要用。值得注意的是,我可以使用从上一步中选择的字体大小,只需在其后键入文本。
所以,I do not understand how can I fix it in order to change the font size of selected text, because I do not find the same questions about it.
PS 的常见问题impossible to apply any text formatting from Select Boxes in iPad with Safari
。只需使用 Safari 浏览器在 iPad 中打开下一页:http ://ckeditor.com/demo#div并尝试将样式应用于文本中的某些单词。
javascript - Ckeditor Plugin - 在textarea中的特定元素上执行javascript函数?
我正在为 Ckeditor 4.5 创建一个插件,我正在使用经典的 iframe 安装,下面是向工具栏添加一个按钮的工作代码,按下该按钮时会创建一个 div.cke-column 元素并将其插入到文本区域包装中任何选定的内容。我无法弄清楚的是在插入这些 div 之后,我想在每个具有特定类的 div 上调用一个简单的 js 函数(js 使我能够拥有一个动态属性,该属性会根据 div 的数量而发生很大变化特克斯区)。特别是在下面的代码示例中,我想在每个 div.cke-column 插入 ckeditor 的 textarea 后对它们执行一个 javascript 函数。
我还应该补充一点,我不希望运行一个 javascript 函数并插入静态 HTMl,这个 javascript 函数会在调整窗口大小时发生变化,因此它需要最初调用一个函数并且可用于 onresize 事件。