ckeditor

append an image to ckeditor via jquery

依然范特西╮ 提交于 2019-12-24 09:48:54
问题 I'm using ckeditor to add posts at a site: <textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10"></textarea> and I want to append some text or image to the textarea of it when I click at a button via jquery. I tried this but not worked: <script> $(document).ready(function(){ $('.button').click(function(){ img = "<img src='http://localhost/sdn/files/uploads/1368647314.png'/>'"; $(".cke_editable").append(img); // also I tried: $("#editor1").append(img); }); }); </script>

Typo3: 8.7.9 CKeditor removes block-styles after save

青春壹個敷衍的年華 提交于 2019-12-24 09:47:21
问题 I have the following YAML-config of the CKEditor in Typo3: # Load default processing options imports: - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } # Add configuration for the editor # For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config editor: config: # can be "default", but a custom stylesSet can be

Is it possible to set my own id to CKEditor?

前提是你 提交于 2019-12-24 08:28:43
问题 CKEditor automatically generates an id like 'cke_xxx'. Is it possible to set my own id to CKEditor instance? 回答1: Ckeditor will create the instance name based on the DOM element it was related to ( usually id attribute ), so you can customize the instance name based on that. If you are more referring to changing the id of the actual DOM element that CKEditor creates, I don't think there is a way to set it on creation, but you can always update it after creation with something like var editor

CKEditor 4 Toolbar Dropdown in IE7

这一生的挚爱 提交于 2019-12-24 08:19:29
问题 I am using ckeditor 4 for my project. The dropdown list in ckedior toolbar is not opening in IE7 where as it is opening fine in Chrome and Firefox. Any idea why? Internet Explorer 7 Chrome 回答1: Actual version of CKEditor I was using is 4.0.1.1. I reverted back to CKEditor 4.0 and it worked in IE7 as well. It seems there is some problem with version 4.0.1.1. 回答2: I had a similar problem with IE9 downgraded to emulate IE7. Then I did not get a context menu. By forcing the document mode to at

Disabling CKEditor, Re-enabling with JS

核能气质少年 提交于 2019-12-24 07:57:33
问题 I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning the user can not edit the text in the note? The reason I want to use CKEditor in the view page is for 2 reasons: 1. I can use JavaScript to move the editor from disabled to enabled 2. Keep the styles the same from the POST & View page. Is this possible? Thanks! B 回答1: not sure if you are still looking for an answer

Disabling CKEditor, Re-enabling with JS

断了今生、忘了曾经 提交于 2019-12-24 07:57:06
问题 I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning the user can not edit the text in the note? The reason I want to use CKEditor in the view page is for 2 reasons: 1. I can use JavaScript to move the editor from disabled to enabled 2. Keep the styles the same from the POST & View page. Is this possible? Thanks! B 回答1: not sure if you are still looking for an answer

How to Search a word through coding in CKEditor using javascript?

荒凉一梦 提交于 2019-12-24 06:29:52
问题 Can anyone give tell me how to search for a particular word in a CKEditor instance using JavaScript? I have one button named search and one textbox. When I type a word in the text box and press the button it should find the text in the Editor. The solution must be JavaScript only. 回答1: There's a command find , however editor.execCommand( 'find' ) will only show the find&replace dialog, what rather won't satisfy you. Unfortunately, to copy behaviour of this dialog you'll need to write your own

How to Search a word through coding in CKEditor using javascript?

ぐ巨炮叔叔 提交于 2019-12-24 06:28:17
问题 Can anyone give tell me how to search for a particular word in a CKEditor instance using JavaScript? I have one button named search and one textbox. When I type a word in the text box and press the button it should find the text in the Editor. The solution must be JavaScript only. 回答1: There's a command find , however editor.execCommand( 'find' ) will only show the find&replace dialog, what rather won't satisfy you. Unfortunately, to copy behaviour of this dialog you'll need to write your own

CKEditor5 & Angular2 - Getting exact position of caret on click inside editor to grab data

社会主义新天地 提交于 2019-12-24 06:27:17
问题 In Angular2+, I'm trying to get the exact position of the caret when I click inside a CKEditor5 Balloon Editor instance. I will have several instances on the page, each dynamically represented through a @ViewChildren and a QueryList (each instance is a separate editor). On a high level, I'm trying to trigger a method when a user clicks inside a Balloon Editor, and it will store all the text before the cursor in a variable, and then store all the text after a cursor in another variable. i.e.

CKeditor Html 5 <figure> tag issue

 ̄綄美尐妖づ 提交于 2019-12-24 05:52:35
问题 I using CKeditor version 4. And I facing issue related HTML 5 tag. Input Html Code: <div class="col-md-4 col-sm-4"> <div class="item-cont"> <a href="contents/view/home"> <figure> <img src="img/1468996695_img-1.jpg" /> </figure> <div class="item-content"> <div class="align-content"> <div class="text-cont"> <h1>Text</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry.</p> </div> </div> </div> </a> </div> </div> Output return from