ckeditor

How to Rid of Large Spacing in CKEditor?

蹲街弑〆低调 提交于 2019-12-03 15:39:53
问题 I installed CKEditor, i found it causes large space between lines even though i'm just pressing enter once to move to the next! I have to press "Shift" for every enter to have the breakline! Any idea on how to make it work without pressing Shift? Line 2 caused by pressing Shift + enter. Line 3 caused by just pressing Enter. I'm using PHP 回答1: You can set in your config.js to use a <br> instead of <p> while hitting the ENTER key: config.enterMode = CKEDITOR.ENTER_BR; The available flags are

Specifying a custom configuration file for CKEditor

狂风中的少年 提交于 2019-12-03 15:37:58
I am trying to add the CKEditor to a page I am currently developing but am having problems getting it to pick up my custom configuration file? I am using CKEditor in Visual Studio.NET 2008. I need to customize the toolbars that are displayed, as Basic is too minimal and Full would give an overwhelming amount of buttons to the user. I am declaring the editor in the aspx page as follows: <script type="text/javascript"> CKEDITOR.replace(document.getElementById("<%= txtTourItinerary.ClientID %>"), { customConfig: 'myconfig.js' } ); </script> the myconfig.js file itself is in the root of the

CKEditor 4.5 drag and drop image upload - how to return new dimensions in json response?

我的梦境 提交于 2019-12-03 15:37:24
I have drag and drop image uploads working using CKEditor 4.5.1. Very nice feature! On the server side I am resizing large images. My JSON response returns the resized image url (set by 'url' in the response) and that is the image that is shown in the CKEditor window after the successful file upload. But the img tag inserted has the height and width attributes set with the values from the original image, not my resized image. Is there a way to return the new height and width values? Or does anyone have an idea of how to hack around this? And more generally, is there any resource which

ckeditor add event handler to dialog element

瘦欲@ 提交于 2019-12-03 15:06:50
I'm writing a custom dialog/plugin for ckeditor . What I want to know is how I can add an eventlistener to a select box in the dialog, to alert when the selected value has been changed. How can I do this? I've looked at the API and I've come across some useful information but it is not detailed enough. I can't make a connection between the API information and what I am trying to implement. The select elements in the dialogs automatically fire a change event when they are changed. You can add an onChange function in the definition for the select element. Here's an example from the api: onChange

How do I customize ckeditor's toolbar

末鹿安然 提交于 2019-12-03 14:17:04
I am using ckeditor and want to customize the toolbar and text entering area as the gap between two sentences much. I am unable to find the toolbar.js or config.js where i should do the changes.. how do i customize the above both Sonal's answer isn't wrong in itself, but DOESN'T REFER TO CKEDITOR. FCKeditor was (and is) a good product, but it's now replaced by the new CKEditor, so using those config might not really work. As you can read in the docs here , you can pass custom configuration options by editing the config.js file, which is located in the root folder of CKeditor (in a fresh

Is it possible to reinitialize a CKEditor Combobox/Drop Down Menu?

南楼画角 提交于 2019-12-03 13:48:25
问题 How do I dynamically update the items in a drop down? I have a custom plugin for CKEditor that populates a drop down menu with a list of items which I can inject into my textarea . This list of items comes from a Javascript array called maptags , which is updated dynamically for each page. var maptags = [] This list of tags gets added to the drop down when you first click on it by the init: function. My problem is what if the items in that array change as the client changes things on the page

CKEditor align images instead of float

我怕爱的太早我们不能终老 提交于 2019-12-03 13:34:26
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! uFarooq Here is an alternative... I found that did the width/height just changed to add the align as well. CKEDITOR.on('instanceReady',

How can I append text to html source in CKEditor?

雨燕双飞 提交于 2019-12-03 13:32:48
I use CKEditor in my web-application. By click on one link i appends some text to CKEditor. It works fine. But when I open source tab, i can not append this text to the existing source. Can you help me how can I do it? Thank you in advance. Sorry for my english. If you are trying to append HTML text, you could use the createFromHtml method like this for example: var imgHtml = CKEDITOR.dom.element.createFromHtml("<img src=" + imageSrcUrl + " alt='' align='right'/>"); where imageSrcUrl is the image location and then you can insert it into the ckeditor source like this: CKEDITOR.instances.body

CKEditor in CodeIgniter

无人久伴 提交于 2019-12-03 13:23:30
问题 I wanna load CKEditor in CodeIgniter,I search a lot,but can't understand their way. I placed ckeditor in application/plugins folder and now I wanna make editor ,so I do following in Controller Method. include APPPATH.'plugins/ckeditor/ckeditor.php'; $CKEditor = new CKEditor(); $CKEditor->basePath = '/'.APPPATH.'plugins/ckeditor/'; $initialValue = '<p>This is some <strong>sample text</strong>.</p>'; echo $CKEditor->editor("editor1", $initialValue); but it makes simple teaxaria only ,with This

Does anyone know of a spell checker plugin for ckeditor that uses aspell or a similar local service instead of spellchecker.net? [closed]

谁都会走 提交于 2019-12-03 13:08:49
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. We are using CkEditor on our CMS product and does not want to use the built in spell checker from spellchecker.net. Does anyone know of other plugins, like e.g. the old FCKeditor plugin which used aspell serverside? A CkEditor port of the old aspell based