ckeditor

Multiple 4.2 CKEditor instances on one page with AngularJS

╄→尐↘猪︶ㄣ 提交于 2019-12-06 10:23:32
问题 I am using CKEditor with angularJS. I have two editor windows as below: {{ modal.data.text }} <textarea id="Textarea1" data-ck-editor data-ng-disabled="modal.action=='delete'" data-ng-model="modal.data.text"></textarea> {{ modal.data.notes }} <textarea id="Textarea2" data-ck-editor data-ng-disabled="modal.action=='delete'" data-ng-model="modal.data.notes"></textarea> The application allows a user to select rows in a grid and then the following is executed to populate new data in the modal

CKEditor with noneditable islands

自古美人都是妖i 提交于 2019-12-06 09:48:03
问题 How can we have non-editable areas in a non-readOnly area? Notice I still need most of the editor have editable content, so using readOnly mode is not an option. Setting contentEditable=true for those areas doesn't work, it seems like CKEditor strips all contentEditable values of it's children tags. 回答1: CKEditor 4.3 introduced Widget System which solves exactly this issue - it allows you to have non-editable fragments in the content. Actually, it allows you to do much more than that, because

TYPO3: CKEditor strips data-attributes in <span>-Tags

百般思念 提交于 2019-12-06 09:06:40
问题 I want to use a data-attribute in a span-Tag. The CKEditor removes this attribute. If I add it in a p-Tag it will not removed and this is OK. processing: allowAttributes: [data-count] is added in the YAML-file. I've tried this and other combinations, nothing works. config extraAllowedContent: '*(*)[data-*]' What do I have to do, to keep the data-attribute in a span-Tag? 回答1: I have done this for iframe tag with attribbuts, no allowAttributes used for this: processing: allowTags: - iframe

CKEditor Memory Leak on setData()

不羁岁月 提交于 2019-12-06 08:39:19
问题 I think I'm having some big memory leaks related to the CKeditor setData() function. I have a web app where users can design their own content with Javascript. CKEditor is used as the WYSIWYG editor for the users to write content of each part of the design. Each time a user click on a editable text-element in their design, editor.setData is called, and it sets the CKEditor data to whatever is within the text element of the users design that is being clicked. This works fine for a few times,

webpage css overrides ckeditor 3 style

馋奶兔 提交于 2019-12-06 08:24:02
I've got a page where I load screen.css which contains an evil rule, which for various reasons I cannot remove or modify: a { background: red !important; } I use CKEditor 3.x on the same page and the problem is that, no matter which style I choose (v2, kama, office2003), the buttons of the editor look red. FCKeditor 2.x didn't have an issue with this because it was creating an iframe to host the whole editor instance. Thus the evil css snippet didn't even exist in its page. The new CKEditor 3.x though uses divs and tables to host the editor wrapper and buttons and then an iframe just for the

enter key for save textarea values

依然范特西╮ 提交于 2019-12-06 08:20:47
问题 hi i have ckeditor and one button for save ckeditor text whith ajax . <textarea id="editor1" name="editor1"></textarea> <input type="button" name="send" id="send" value="Send" onclick="save()"> i want remove button and when key press enter save text whith ajax ( run save function ) but when press enter in ckeditor line break . and how use enter exchange button? <textarea id="editor1" name="editor1"></textarea> if (enter press in any where web page ) do save(); 回答1: The important part is that

CKEditor remove style preview from Styles dropdown

不想你离开。 提交于 2019-12-06 07:40:05
I've been searching and searching for an answer to this problem and cannot found a solution. I have added some custom styles to the CKEditor that add a margin-left to the selected text. The problem is that this causes the style previews to move to the right in the styles list. So much so, that they go off the right side of the dropdown. I don't quite have enough rep to post a screenshot unfortunately. I would just like the styles in the list to have no preview at all if possible. I have tried to add .cke_panel_listItem p {margin-left: 0px !important;} to my global.css and to the editor.css. I

How to change the default browse directory for images in KCFinder?

大憨熊 提交于 2019-12-06 07:13:45
I'm using CKEditor with KCFinder. Everything works great except one thing. My default upload URL is: 'uploadURL' => "/userfiles" Let's say I want to upload an image. I click on Upload image in CKEditor, then I click on Browse the Server to select one already uploaded. Problem is that CKEditor is browsing /userfiles/images instead of just /userfiles like I would like to. I understand that this is not a bug and just a way it was set up but how do I change it? I didn't find anything on http://kcfinder.sunhater.com I found an even better workaround. The magic occurs when, in your config.php file,

Customising CKEditor Toolbar

主宰稳场 提交于 2019-12-06 06:32:59
问题 I want to customize the toolbar of CKEditor. First, though, I want to have a complete list of available options for the toolbar. I searched for toolbar options and found the following incomplete list. Please help me to find the complete list so that I can select according to my requirements. config.toolbar_MyToolbar = [ { name: 'document', items : [ 'NewPage','Preview' ] }, { name: 'insert', items : [ 'Image','Flash','Table'] }, { name: 'styles', items : [ 'Styles','Format' ] }, { name:

ckeditor onKeyUp event how?

北城以北 提交于 2019-12-06 06:06:41
This code piece must copy text from textarea text to textarea text_hidden , this code work without ckeditor onKeyUp="document.getElementById('text_hidden').value = this.value; but when ckeditor enabled onKeyUp="document.getElementById('text_hidden').value = this.value; not work. How to fix this ? <textarea name="text" id="text" rows="6" cols="80" onKeyUp="document.getElementById('text_hidden').value = this.value;" ></textarea></p> <textarea name="text_hidden" id="text_hidden" rows="6" cols="80" ></textarea> <script> CKEDITOR.replace( 'text' , { allowedContent: true, enterMode: CKEDITOR.ENTER