ckeditor

permanentredirect s3 for unspecified endpoint

前提是你 提交于 2019-12-01 05:43:40
问题 I'm experimenting with s3 but im running into a permission problem (i think). Output: AWS::S3::PermanentRedirect in CkeditorController#create The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. I'm using ckeditor. My Ckeditor::Picture class includes this: has_attached_file :data, :s3_credentials => "#{Rails.root}/config/s3.yml", :storage => :s3, :path => ":attachment/:id/:style.:extension" validates

How to extract plain text from ckeditor generated html in JAVA

蓝咒 提交于 2019-12-01 05:07:22
问题 I am using ckeditor to compose the emails, I am using the html generated by it to send the html emails ad i also need the text version also, So having both html and plain text version in emails will avoid the spam. What is the way to get the text from ckeditor html code in java. 回答1: This is quite simple JavaScript call: CKEDITOR.instances.yourEditorInstance.getData() Returns: <h1>Apollo 11</h1> <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en

CKEditor plugin to set classes

穿精又带淫゛_ 提交于 2019-12-01 04:53:29
问题 What I want to do is something similar to the native foreground / background colors dialog. The difference is, it will have buttons with colors directly in a toolbar. So one plugin has to have multiple buttons, with different styles (colors). The other problem is, that this native plugin sets CSS color and background-color properties. I need to use classes instead, like this: text <span class="fg red">colored text</span> text and text <span class="bg blue">colored background</span> text

How to set and lock the CKEditor window size?

守給你的承諾、 提交于 2019-12-01 04:53:23
问题 CKEditor creates a resizable window of some default size. Is it possible to set the window to my desired size and prevent it from being resized? Styles do not work, including explicit style or rows attribute in the textarea tag. jQuery also does not work (with it's height function). 回答1: Use these config settings: Starting height and width: config.height = '111px'; config.width = 111; Is the CkEditor window resizeable: config.resize_enabled = false; //false says not resizable You can let it

CKEditor freezes on jQuery UI Reorder

六眼飞鱼酱① 提交于 2019-12-01 04:34:34
I am attempting to reorder a dynamically created list of CKEditors using the jQuery UI framework, but I am having an issue with the editor freeing. It worked perfectly when I was just using a <textarea> , but now, after the dragging action completes, it doesn't let the user write any text. This is the Javascript code: $(function() { $("#list").sortable({ placeholder: 'ui-state-highlight' }); $("#list").disableSelection(); for (i=0;i<10;i++) { addEditor(); } }); function addEditor() { alert("Hello"); var editor_fields = document.editors.elements["editor[]"]; var editorAmount = 0; if (editor

How to integrate CKEditor in GWT

戏子无情 提交于 2019-12-01 04:23:14
问题 I'm looking for a way to integrate CKEditor in my GWT project. I've made some googling and found this project: https://code.google.com/p/gwt-ckeditor/ which has been abandoned for years. So the CKEditor is completely outdated. I've also seen the CKEditor being loaded outside of GWT into a textarea created in GWT. I'm not sure if that's a good way. If someone could give me some advises, it would be highly appreciated. Thanks by advance 回答1: You can use JSNI for activate the CKEditor. For

CKEditor - Change image source

独自空忆成欢 提交于 2019-12-01 04:12:20
I have made some custom functionality to the CKEditor. In short, it shows a div tag with 5 links, for Small, Medium, Large X-Large and Original size. When I click the links, it changes the SRC attribute of the image to the correct size. It works, but it doesn't persist back to the editor. It's like the Image i get through the click event target, is not part of the Source code. How can I change the Source code, when manipulating with the elements in the editor? My code looks like this: $(target).ckeditor(function (editor) { $(this.document.$).bind("click", function (event) { var target = $

How to add an ajax save button with loading gif to CKeditor 4.2.1. [Working Sample Plugin]

▼魔方 西西 提交于 2019-12-01 04:08:00
问题 I'm posting this because this may be helpful for people who do not know how to display a save icon to ckeditor in normal and inline-editing mode. I was searching for a simple save plugin but couldn't find one that was working with ckeditor 4.2.1. I decided to make my own. In my answer you'll find the code for the plugin as well as a google drive download link. This download contains the save icon as well as the loading gif icon. The plugin will add a save button to the toolbar. Clicking this

CKEditor freezes on jQuery UI Reorder

做~自己de王妃 提交于 2019-12-01 02:37:17
问题 I am attempting to reorder a dynamically created list of CKEditors using the jQuery UI framework, but I am having an issue with the editor freeing. It worked perfectly when I was just using a <textarea> , but now, after the dragging action completes, it doesn't let the user write any text. This is the Javascript code: $(function() { $("#list").sortable({ placeholder: 'ui-state-highlight' }); $("#list").disableSelection(); for (i=0;i<10;i++) { addEditor(); } }); function addEditor() { alert(

CKEditor - Change image source

微笑、不失礼 提交于 2019-12-01 02:31:37
问题 I have made some custom functionality to the CKEditor. In short, it shows a div tag with 5 links, for Small, Medium, Large X-Large and Original size. When I click the links, it changes the SRC attribute of the image to the correct size. It works, but it doesn't persist back to the editor. It's like the Image i get through the click event target, is not part of the Source code. How can I change the Source code, when manipulating with the elements in the editor? My code looks like this: $