ckeditor

Ckeditor: Using Firefox built in spellchecker

微笑、不失礼 提交于 2019-12-20 18:34:47
问题 I feel a little caught between a rock and a hard place here. I want to use Firefox's built in spell checking without disabling Ckeditor's context menu as this renders it impossible to work with tables. Is there a way of getting the best of both worlds here? 回答1: You could try setting the disableNativeSpellChecker property to false - it should then be possible to see the native spell checker markings within the editor - however for me I couldn't get this to work in Firefox, only Google chrome.

Insert text at the cursor position to a CKEditor using jQuery

穿精又带淫゛_ 提交于 2019-12-20 16:25:13
问题 I'm trying to add a piece of text to an existing CKEditor using jQuery. This needs to be done when a link is clicked. I tried this solution, which works for regular textareas, but not for CKEditor: jQuery.fn.extend({ insertAtCaret: function(myValue) { return this.each(function(i) { if (document.selection) { //For browsers like Internet Explorer this.focus(); sel = document.selection.createRange(); sel.text = myValue; this.focus(); } else if (this.selectionStart || this.selectionStart == '0')

Integrating CKEditor with Rails 3.2

人盡茶涼 提交于 2019-12-20 09:56:05
问题 Similar to Integrating CKEditor with Rails 3.1 Asset Pipline I am trying to integrate ckeditor with my rails 3.2 application. I have all ckeditor files copied under /app/assets/javascripts/ckeditor/* . I have the following lines in my application.js and application.js is included in my layout file: //= require jquery //= require jquery_ujs //= require ckeditor/ckeditor //= require_self Taken it from the answer to Integrating CKEditor with Rails 3.1 Asset Pipline I can understand that I need

CKEditor 4 build (minify and uglify)

浪尽此生 提交于 2019-12-20 09:34:46
问题 In our build process (using grunt), we concatenate, minify and uglify all our scripts into a single one (also meaning a single request only). Now CKEditor 4 seems to be using a module style loading approach. Can anybody tell me how to include CKEditor 4 into a project with all the sources necessary, so there will be no dynamic loading later? 回答1: CKEditor works in two modes: In the development (source) mode: you include the ckeditor.js file, it loads all core files, it loads config.js (you

CKEDITOR toolbar is not showing up fully

只谈情不闲聊 提交于 2019-12-20 07:16:47
问题 I am getting a weird behavior using CKEDITOR with Rails, I tried both of those gems : ckeditor gem and ckeditor_rails gem in different app I have (Rails v4.2.0 and with Rails v4.2.1 and Rails v4.2.2) I have a text with id="ck" <p contenteditable="true" id="ck">some dummy text</p> and I am using the inline editing option $(document).ready(function(){ CKEDITOR.disableAutoInline = true; CKEDITOR.inline("ck"); }); In my Rails 4.2.1 and 4.2.2 I noticed that the toolbar does not show all buttons,

CKFinder. Rename uploaded files

拜拜、爱过 提交于 2019-12-20 06:37:30
问题 I am using ASP.NET version of CKFinder. I need to rename all uploaded files to names like: file1.jpg, file2.jpg, fileN.jpg. It would be great to write my own custom logic on the server to manage uploaded files, but ckfinder is standalone dll library that i include to my project. I cant figure out how to change config settings on client side in proper way. Is it possible? 回答1: Well, i figured out how to solve my problem. When you download CKFinder zip package from official server there is

CKEditor4 destroy, not preserve original HTML content. How to disable filters?

泪湿孤枕 提交于 2019-12-20 06:19:36
问题 I am using the standard demos, like this. So, the main options (little changes) can be flagged at config.js . Example when edit by source-code-HTML (button Source ): elements (tags) with class attribute, lost the attribute ( class has been stripped out). So, how to disable the "default filter"? The "filtering by default" behaviour is a problem: is not backwards compatible, and, mainly, not a expected behaviour, because destroy the original content, that you must only change with editor.

How to integrate CKEditor with Heroku?

别等时光非礼了梦想. 提交于 2019-12-20 05:36:12
问题 This is a bit tricky because Heroku uses a Read-only Filesystem across their Dyno Grid. Which means when trying to install ckeditor remotely, I get an error : heroku rake db:migrate rake aborted! Read-only file system - /disk1/home/slugs/362142_8858805_b85c-f2f3955d-f087-4bc4-8b1b-b6e898403a10/mnt/public/javascripts/ckcustom.js ckcustom.js is a config file to manage your meta settings for ckeditor. I was wondering if anyone else had these troubles, and what they did to get around them? 回答1:

Disable sorting of element attributes

偶尔善良 提交于 2019-12-20 03:43:06
问题 Is there a way to disable the sorting of element attributes so that checkDirty() will work correctly when allowedContent is set to true? Example of the sorting of attributes here <div zattribute='z' attribute='a'>simple</div gets changed to <div attribute="a" zattribute="z">simple</div> causing the checkDirty() call to always return true even though the user didn't actually change anything within the ckeditor user interface. 回答1: CKEDITOR.on( 'instanceReady', function( ev ) { ev.editor

CKEditor 4 combinate css

喜你入骨 提交于 2019-12-20 03:36:36
问题 I use CSS on my website to style the items. In my (own developed) CMS I use CKEditor as WYSIWYG-editor. I would like the editor to have the same style as the content on my webpage. The CSS of my page looks like this: .content { ... } .content ul, .content ol { ... } .content p { ... } But the stylesheet of CKEditor (contents.css) looks like this: body { ... } ol,ul,dl { ... } h1,h2,h3,h4,h5,h6 { ... } Is there a way to make this in to one stylesheet, or to edit CKEditor, so a div.content is