ckeditor

Yii , saving an image from $_FILES , but without using models

本秂侑毒 提交于 2019-12-09 17:51:43
问题 Is this possible ? This is with a model CUploadedFile::getInstance($model,'newsimage'); $model->image->saveAs("image\path") but I don't want to create a model just so i can save my image. What I actualy need this for is ... well I am trying to make the "Upload image" function of CKEditor to work, but I need a script for the image saving. When I click the "Upload image" button i just call an action and from there I have access to the picture I have selected, using $_FILES , but I can't seem to

How do I configure the Image Properties dialog box in CKEditor?

元气小坏坏 提交于 2019-12-09 17:12:31
问题 My current Image Properties dialog box only has the Image Info and Link tabs available. I want to change this dialog box so that: I want to remove the Width, Height, Border, HSpace, VSpace, Alignment, and Preview elements from the Image Info screen I want to remove the Link tab I want to enable the Upload tab so that users can choose an image file that resides on their local computer I've been doing lots of searches but can't understand how to do the above at all. Any pointers please? I am

CKEditor & JavaScript - Adjust height and width in CKEditor

淺唱寂寞╮ 提交于 2019-12-09 16:45:43
问题 How can I adjust the height in CKEditor? Here is my code for CKEditor. <script type="text/javascript"> CKEDITOR.replace( 'content', { toolbar : [ ['Source'], ['Bold','Italic','Underline','Strike'], ] }); </script> 回答1: Add the height and width setting in the parameters: CKEDITOR.replace( 'content', { toolbar : [ ['Source'], ['Bold','Italic','Underline','Strike'], ], height: 300, width: 400 }); 回答2: Go to confi.js file and in the CKEDITOR.editorConfig = function( config ) { . . . . **config

Integrating CKeditor to my symfony2 project

有些话、适合烂在心里 提交于 2019-12-09 16:31:49
问题 I was trying to integrate ckeditor to my symfony2 project so that some of the textarea will have the ckeditor html editor. I brought the ckeditor on my required textarea by calling the class="ckeditor" in my form. The issue that I am facing now is that when I use the ckeditor the submit button of my form will not work instead I will have to use the built in "Save" option of the ckeditor toolbar for submitting the form. When I remove the ckeditor from the textareas and use normal textarea the

Enable CKEditor4 inline on span and other inline tags

て烟熏妆下的殇ゞ 提交于 2019-12-09 15:33:50
问题 I'd like to know if it's possible and how to enable the CKEditor4 inline/contenteditable editing feature on <span> and other inline elements. This is something which I cannot find in the official docs. With this markup: <span id="editable" contenteditable="true"></span> And either the standard configuration (AutoInline enabled) or this configuration: <script> CKEDITOR.disableAutoInline = true; CKEDITOR.inline('editable'); // ID of the element to edit </script> An error is reported: The

CKEditor align images instead of float

六眼飞鱼酱① 提交于 2019-12-09 12:00:37
问题 All, I'm very successfully using CKEditor in my app that allows clients to build and send HTML Emails. There's just one hitch--CK uses style="float:left" for images, while Outlook refuses to accept that as valid (way to go, Microsoft..) FCKEditor used to use aligns instead of floats to position images. Is there a way to hack CKEditor to behave as FCK used to with regards to image alignment? Posts to CK's forums have been futile. Any assistance is appreciated! 回答1: Here is an alternative... I

How to customize CK-Editor's tools menu?

纵然是瞬间 提交于 2019-12-09 06:28:28
问题 I would like to change tool menu optons on ck-editor. for example I remove some of them that I dont need to use. How can I do that ? 回答1: There's a configuration setting that allows you to set which buttons will appear. You just create your own toolbar layout. I've included the default full toolbar code, you can remove the buttons that you don't want to appear. It's best to copy the default config.js file and rename it, then call your custom config file and the custom toolbar when you load

How do I pass in config info to CKEditor using the jQuery adapter?

送分小仙女□ 提交于 2019-12-09 04:35:10
问题 I'm using the latest CKeditor with jQuery adapter. I have successfully got it to work, and display. However, as I am completely new to CKeditor , how do I pass in config variables using the jQuery method? This is what I've got $( '#input-content' ).ckeditor('', { toolbar: 'basic' }); I think from what I've read, the first argument is meant to be a callback, and the 2nd the config. But doing this has not changed the editor at all. How do I use these config properties etc using the jQuery

How to Cut, Copy and Paste from JavaScript to a User's Clipboard

旧巷老猫 提交于 2019-12-09 03:38:42
问题 There are multiple similar questions in stackoverflow which deal with how to Cut, Copy, and Paste from JavaScript (in response to a button press, for instance) without the user having to use CTRL+X, C, or V. All these answers suggest either that you are insane for wanting to do this and that users should never have their clipboards violated in such a profane manner, or to use the hack of an invisible Flash movie (which has questionable support). However, Google Docs does this, and does not

CKEditor - disable image drag and drop

喜欢而已 提交于 2019-12-09 03:15:52
问题 Problem: When drag and drop images in Firefox into the CKEditor Window, the image are automaticly encoded in base64. Now i want to disable this. I tried it with: config.removePlugins = 'dragdrop'; but it's not working at all. Also tried it with a old Plugin (imagepaste), but not working either... Is there a known solution out there? Thx! 回答1: At first I tried to disable Base64 with config.removePlugins = 'dragdrop,basket'; , but it didn't work at all. Then I found this link, which helped me