ckeditor

Why in my CKEditor need to double click the submit button to work?

随声附和 提交于 2020-01-06 07:01:20
问题 Im have a module called manage content where the admin can edit the content of the website. I saw this CKEditor and I applied it to my website, but having a problem. When I clicked the submit, it won't change but when I tried to double click the submit it will change. View <div class="col-md-6"> <ol class="breadcrumb"> <div id="success-message-edit-about"></div> <form id="edit-about"> <input type="hidden" name="id" value="<?= secret_url('encrypt',$edit_about->id)?>"> <div class="form-group">

Why CKEditor ignores empty div or is it something else?

时光毁灭记忆、已成空白 提交于 2020-01-06 02:28:13
问题 I have written a plugin that adds bootstrap grid into the editor.However it seems that CKEditor deletes the whole wrapping col div when there is no content inside it. Plugin on github: https://github.com/radko26/CKEditor_layoutmanagerPlugin/tree/master/layoutmanager This is what is default inside the dom.When i delete the 'content', the editor removes the wrapping div-layout-column . <div class="container-fluid layout-container"> <div class="row layout-row"> <div class="col-xs-3 col-sm-3 col

CKEditor + Selenium WebDriver not work with FireFox 9/10 anymore

梦想与她 提交于 2020-01-05 07:09:41
问题 Before moved to FF9/10, this line sendKeys can work well with FF8.0.1 + Selenium 2.18. But after upgrade FF to 9 and 10, sendKeys will get nothing in CKEditor. No exception, no warning. I am wondering if it is the bug of CKEditor? or FF 9/10? or WebDriver? Anyone have clue for this? DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox(); desiredCapabilities.setPlatform(Platform.WINDOWS); URL remoteAddress = new URL("http://127.0.0.1:4444/wd/hub"); RemoteWebDriver driver = new

CKEditor + Selenium WebDriver not work with FireFox 9/10 anymore

时间秒杀一切 提交于 2020-01-05 07:09:28
问题 Before moved to FF9/10, this line sendKeys can work well with FF8.0.1 + Selenium 2.18. But after upgrade FF to 9 and 10, sendKeys will get nothing in CKEditor. No exception, no warning. I am wondering if it is the bug of CKEditor? or FF 9/10? or WebDriver? Anyone have clue for this? DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox(); desiredCapabilities.setPlatform(Platform.WINDOWS); URL remoteAddress = new URL("http://127.0.0.1:4444/wd/hub"); RemoteWebDriver driver = new

Ckeditor uploadimage 404 error / plugin setup

﹥>﹥吖頭↗ 提交于 2020-01-05 06:31:30
问题 I'm trying to add the adding of images into with the editor, with drag 'n drop. I wanted to update CK editor anyway, so after some reading I created a new CKeditor download via the package building, including the plugin uploadimage - http://ckeditor.com/addon/uploadimage When I try to drag 'n drop an image in it, I'll see a green bar saying upload succesful and for less then a second I see the image in the editor. Then a red bar is showing. saying: 'HTTP error occurred during file upload (404

how to add a dropdown/button to ckeditor to insert content when selecting a dropdownItem

天大地大妈咪最大 提交于 2020-01-05 06:07:59
问题 I need to be able to add a dropdown or button to the ckeditor's toolbar that will pop up a list, and when a listitem would be clicked the text of that list item would be added to the ckeditor's content I also need to be ablee to change the content of that list, like to have a function: function SetListsContent(arr) { //fill the list with the array arr ... } 回答1: For this first of all add plugin. code to add plugin is below: CKEDITOR.plugins.add( 'language', { requires: 'selection', init:

how to add a dropdown/button to ckeditor to insert content when selecting a dropdownItem

匆匆过客 提交于 2020-01-05 06:03:26
问题 I need to be able to add a dropdown or button to the ckeditor's toolbar that will pop up a list, and when a listitem would be clicked the text of that list item would be added to the ckeditor's content I also need to be ablee to change the content of that list, like to have a function: function SetListsContent(arr) { //fill the list with the array arr ... } 回答1: For this first of all add plugin. code to add plugin is below: CKEDITOR.plugins.add( 'language', { requires: 'selection', init:

Add buttons for custom styles to CKEditor

故事扮演 提交于 2020-01-05 05:58:08
问题 CKEditor lets you add custom styles to the styles combo box by editing the file styles.js (see What is a good javascript HTML editor for adding custom HTML elements? for details) I would like to add unique buttons to the toolbar to apply my custom styles, rather than the user having to select them from the styles combo. How do you add custom buttons to the CKEditor toolbar? 回答1: Go ahead with the following code: // Your custom style. var myStyle = new CKEDITOR.style( { element: 'span',

how to disable auto </br> after <td> in CKEditor?

Deadly 提交于 2020-01-05 05:50:09
问题 CKEditor will add <br> after <td> .. how to disable this or turn off this function? Before : <td> <img style="width: 950px; height: 114px;" src="http://www.abc.com/uploads/image/Newsletter/Newsletter2.jpg" alt=""> </td> After Save : <td> <br> <img style="width: 950px; height: 114px;" src="http://www.abc.com/uploads/image/Newsletter/Newsletter2.jpg" alt=""> </td> My setting : CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config

CKeditor Colorbox Integration

↘锁芯ラ 提交于 2020-01-04 18:18:21
问题 I want to use colorbox inline image, which can be done using http://website-design.operationenterprise.com/articles/website-development/colorbox-ckeditor-drupal-7, but I want to automate the the process for it to be user friendly. The code I used CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ) { var linkTab = dialogDefinition.getContents( 'info' ); var link = linkTab.get( 'txtUrl' ); link[