ckeditor

HTML source indentation for ckeditor

旧城冷巷雨未停 提交于 2019-12-07 20:40:37
问题 When you add some code to a ckeditor in HTML view and then change to WYSIWYG view and come back, almost all HTML tags have been modified and have loose the indentation. Is there any way to prevent this behaviour? (parameter, plugin, hard code...) For example: <div class="former input"> <span class="big horizontal"> <label for="test">Hi world</label> <input class="medium free" id="test" name="test" type="text" /> </span> </div> Becomes: <div class="former input"> <span class="big horizontal">

Angular 4. Add Ckeditor to component.ts

﹥>﹥吖頭↗ 提交于 2019-12-07 19:59:04
问题 Need help to add CKEditor to my ANGULAR 4 ("@angular/core": "^4.2.4") component. This will work if i will add <script src="https://cdn.ckeditor.com/4.7.0/standard-all/ckeditor.js"></script> to index.html , but library is very heavy, that is why i try to load source script through component. I tried safe markup trough pipe on all lifecycle hooks. If add safe markup to constructor, then script is loads the source code, but CKEditor library can't see source script in the DOM. Any help is very

ckeditor onKeyUp event how?

大憨熊 提交于 2019-12-07 18:26:19
问题 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=

CKEditor - Modify BBCode Output

会有一股神秘感。 提交于 2019-12-07 17:33:50
问题 I'm building a forum application in php for my website (mostly just to see if I can pull it off). I've been tinkering with web development as a hobbyist for nearly 20 years, but I've always avoided working with javascript - meaning I've become pretty good working with html,css and php, but I'm useless when it comes to client-side scripting. For all intents and purposes, my forum works. Users can register, post, edit, review an delete posts based on their user level and permissions etc.

Calling UI button externally

大憨熊 提交于 2019-12-07 17:31:33
问题 Answered: Result can bee seen here: http://apitecture.com/dev/cked/index.2.html Working code excerpt: $('a.color').on({ click : function() { var self = $(this); var editor = self.data('editor-instance') || CKEDITOR.instances['one']; var button = self.data('editor-button') || editor.ui.create('TextColor'); if (!self.data('editor-instance')) { self.data('editor-instance', editor); } if (!self.data('editor-button')) { button._.id = self.attr('id'); self.data('editor-button', button); } button

how to disable ckeditor 3 auto spellchecker?

坚强是说给别人听的谎言 提交于 2019-12-07 16:12:20
问题 I've installed CKEditor 3.0 ,it work nice , but I want to disable the auto spellchecker I notice when I'm writing some words in the editor it manages to connect to "svc.spellchecker.net" to make spell check do you know any way to stop that feature ? thanks in advance 回答1: The option that you want is scayt_autoStartup 回答2: Better disable the plugin in config.js config.removePlugins = 'scayt'; 回答3: This is the way I've used: CKEDITOR.editorConfig = function (config) { // Disable spellchecker

CKFinder “Edit” features does not work when working on different domains

為{幸葍}努か 提交于 2019-12-07 15:24:38
问题 We are evaluating CKFinder, at the moment we have this situation: app .domain.com hosts our JS application included ckfinder.js api .domain.com hosts the connector.php Please note they are on different domains. We are able to view files and folders with no problems. The issue is related the EDIT feature . When user select an Image and click "Edit" Button, CKFinder goes in editing mode but with receive an error and the image cannot be edited: response (status cancelled) URL:about:/blank

Using ckEditor on selective text areas in django admin forms

喜欢而已 提交于 2019-12-07 15:20:49
问题 I want to apply ckeditor on specific textarea in django admin form not on all the text areas. Like snippet below will apply ckeditor on every textarea present on django form: class ProjectAdmin(admin.ModelAdmin): formfield_overrides = {models.TextField: {'widget': forms.Textarea(attrs={'class':'ckeditor'})}, } class Media: js = ('ckeditor/ckeditor.js',) but i want it on a specific textarea not on every textarea. 回答1: You have couple of options. I think the simplest is if you use Django 1.2,

CkEditor Doesn't post value

非 Y 不嫁゛ 提交于 2019-12-07 14:58:52
问题 When a form with a textarea using CkEditor is submitted using ajax the post is empty on the server side. If I remove CkEditor, the value is posted. Any ideas? 回答1: On submit, run this code: for (instance in CKEDITOR.instances) { CKEDITOR.instances[instance].updateElement(); } .. basically for AJAX, you need to force CKEditor to update your textareas so they contain the data you see in the CKEditor windows. See this question for more details. 回答2: You don't really need to update anything with

ckeditor 4.5 fileUploadRequest event not firing

久未见 提交于 2019-12-07 13:49:23
问题 I have a textarea with html id "id_textarea". editor = CKEDITOR.inline( 'id_textarea', { filebrowserBrowseUrl : 'browse_url', filebrowserUploadUrl : 'upload_url' }); editor.on( 'fileUploadRequest', function( evt ) { console.log("This is not printing"); }); Whenever I try to upload a file, it doesn't print anything to console. Am I doing something wrong? By the way, my requirement is to add csrf headers before sending a request for which I need to catch some event like fileUploadRequest. 回答1: