ckeditor

Integrating CKEditor with Rails 3.2

半腔热情 提交于 2019-12-02 19:49:57
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 to add something like: config.assets.precompile += your_files to my development.rb file so that all the

How to change image save location in CKeditor Drupal 7?

做~自己de王妃 提交于 2019-12-02 19:32:53
问题 I use ckeditor module for my project. In ckfinder folder > config.php, the default image saved folder is ... 'baseUrl' => '/ckfinder/userfiles/', My project folder path is... MAMP > htdocs > drupal > sites > all > themes > bootstrap > images When I upload the image, ckfinder image folder create the location in ... MAMP > htdocs > ckfinder So, the level of drupal theme folder and ckfinder folder is the same.. I don't want to be like this. I want to create the htdocs folder inside the theme

Hindi fonts are not working in CKEditor?

霸气de小男生 提交于 2019-12-02 18:37:56
问题 I know this type of question are there. but I have read out all answered question regarding ckeditor hindi fonts. and haven't got solution. I have added following code in contents.css @font-face { font-family: 'kruti_dev_070regular'; src: url('KrutiDev070/kruti_dev_070-webfont.eot'); src: url('KrutiDev070/kruti_dev_070-webfont.eot?#iefix') format('embedded-opentype'), url('KrutiDev070/kruti_dev_070-webfont.woff') format('woff'), url('KrutiDev070/kruti_dev_070-webfont.ttf') format('truetype'),

How to wrap text inside to different paragraphs around image inside the first paragraph (<p> tag). (Content is inputted using CKeditor Plugin)

谁都会走 提交于 2019-12-02 18:01:16
问题 I am using CKEDITOR to input content. Whenever user sets image with property right. There is a blank space coming up. I am having an image inside a tag. My structure is like <p> some text <img alt="" src="M.jpg" style="float:right;"> </p> <p> paragraph 2</p> I want to wrap the paragraph 2 to fill up the white space created by image on paragraph 1. Is this possible. My html looks like this I want to make it look like this Here is the actual code snippet <p>Enter each item on a new line, choose

How to configure simple links and image attaching in ckeditor?

半腔热情 提交于 2019-12-02 17:43:44
I'm using django-ckeditor and I have some problems with the links and images. Regarding Links: In this interface you can see that this is not usable by the end users, as it is too complex and can lead to errors and security issues, as the button Browse Server literally permits the user browse uploaded content. What I want is something really simple: just an input text that automatically appends http (if not typed by user) and that opens the link in a new window aka target _blank . I've tried to do so editing config.js with the following code. This has removed the Upload and Advanced tabs,

How can I change the title ckeditor sets for inline instances?

扶醉桌前 提交于 2019-12-02 17:33:46
问题 Right now it sets it to Rich text editor, element_id. Is there any way to change that? 回答1: In ckeditor.js search for the following string: a.changeAttr("title",c) And justs set it to an empty string if you want: a.changeAttr("title",''); Keep In mind, you'll lose this during an update, but this is the only way until they add it to their editable configurations. Only use this if you don't mind losing some a11y. 回答2: This title is set in CKEDITOR.editable. You can change it by: modifying this

Saving multiple inline edits with CKEditor

你离开我真会死。 提交于 2019-12-02 15:54:24
问题 I'm using asp.net and I would like to edit a newsletter using CKEditor’s inline editing capabilities and then save the newsletter to the database and send via an email. I've seen various posts about getting the data from a single instance of the inline editor on a page. Such as the answer by oleq to Dan Temple question on inline editing. How do I save inline editor contents on the server? However I would like to have a newsletter similar to the inline demo on the ckeditor site with multiple

CKeditor save event

可紊 提交于 2019-12-02 13:21:25
问题 I was following the steps written in this topic: CKEditor, AJAX Save I tried to fire a custom 'saved.ckeditor' event if anybody press the AjaxSave button. But I did not succeeded. ckeditor/plugins/ajaxsave/plugin.js: (function(){ var saveCmd = { modes : { wysiwyg:1, source:1 }, exec : function( editor ) { editor.fire('saved.ckeditor'); $(editor).trigger('saved.ckeditor', editor.getData()); alert(editor.getData()); } } var pluginName = 'ajaxsave'; CKEDITOR.plugins.add( pluginName, { init :

CKEditor 4.5 insert widget into other widget

别说谁变了你拦得住时间么 提交于 2019-12-02 13:03:13
问题 CKEditor 4.5 Beta now should allow nested widgets. http://ckeditor.com/blog/CKEditor-4.5-Beta-Released Can you help me to figure out how can I test nested widgets? I've downloaded 4.5 Beta, created a SimpleBox widget by instructions in tutorial (but without 'allowedContent' filters). But I still cannot put one widget inside editable of another. Can you clarify what I'm doing wrong or point me to correct example. Thank you! 回答1: The easiest way to test nested widgets will be by checking a

CKEDITOR toolbar is not showing up fully

☆樱花仙子☆ 提交于 2019-12-02 12:03:10
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, while it show all buttons (I mean full toolbar) for my Rails 4.2.0 So my hypotheses was that there are