ckeditor

CKEditor 4.4.7 does not show up on any mobile browsers

怎甘沉沦 提交于 2019-12-10 13:59:13
问题 I am creating an internal CMS for work, and it is important that all pages be mobile-friendly. When you view a page with CKEditor 4.4.7 installed from a phone, the editor shows up as a normal textarea and none of the HTML or text within it is properly formatted. I can request a desktop version using my phone's browser, and sometimes this will work. It seems to be pretty hit-or-miss across different phones. I don't believe it has anything to do with enabling JavaScript. Sorry for the lack of

How to hide and show a CKEditor using jQuery?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:56:20
问题 The following code should allow to hide/show the CKEditor form <a onClick="$('#form1').hide();">Hide</a> <a onClick="$('#form1').show();">Show</a> <form action="sample_posteddata.php" method="post" id="form1"> <textarea id="editor1" name="editor1">blabla</textarea> <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script> <input type="submit" value="Submit" /> </form> However, this code works fine on Chrome but on Firefox, once I have toggled once the editor (one 'hide' click

CKEditor inline in modal bootstrap window

谁说我不能喝 提交于 2019-12-10 13:24:33
问题 I need to use CKEditor inline inside a modal bootstrap, but it's not working... I have read this post: How to use CKEditor in a Bootstrap Modal? But it's different to me, beacuse I'm using the inline, and I need just apply CKEditor to some fields (I have other ones using contenteditable property). JS CODE: CKEDITOR.disableAutoInline = true; CKEDITOR.inline('myModalLabel'); CKEDITOR.inline('bodyModal'); $.fn.modal.Constructor.prototype.enforceFocus = function () { modal_this = this $(document)

Insert HTML codes in CKEditor textarea

混江龙づ霸主 提交于 2019-12-10 12:09:17
问题 I would like to know if there is a plugin in order to insert HTML codes in a CKEditor textarea? I tried to install the PBCKCode plugin but it doens't work because the HTML is executed in my textarea. Anthony EDIT1 ----- INSERTPRE Plugin ------- Query when I add the post : INSERT INTO `Posts` (`slug`,`title`,`thumbnail`,`content`,`tags`,`state`,`click`,`createdAt`,`updatedAt`,`id`) VALUES ('dsq','dsq','http://4.bp.blogspot.com/-knCgLUMOkJc/TeMY2jkmACI/AAAAAAAAAV0/VByHmoMa2N8/s1600/first+blog

CKeditor Inline: repeats paragraph ids

邮差的信 提交于 2019-12-10 11:54:20
问题 I have turned on allowedContent property in config. config.allowedContent = "true" This allows me to add ids to paragraphs inside contenteditable div. However, now whenever I hit enter key inside the contenteditable div a new paragraph with same id is generated. I would assume after hiiting enter key a new paragraph should be inserted without any ids but it looks like the ids are copied from previously generated paragraph. Is there any way to avoid this? 回答1: Try this. It's not bullet proof

Inline CKEditor with toolbar on generated code

筅森魡賤 提交于 2019-12-10 11:33:39
问题 I'm building a backend for a cms at the moment. I've been asked to create a module that generates different blocks to quickly make a page (picture with text below, picture with text to right etc.) That bit is working but for editing the text I'm trying to use ckeditor. Using the follwing code the text is editable but I'm not getting a toolbar : <div id="editable" contenteditable="true"> <h4>{{title}}</h4> {{text}} </div> To try and solve this I tried using the javascript from CKEditor's guide

Django Ckeditor image browser not finding images

旧时模样 提交于 2019-12-10 11:29:30
问题 So I'm building a simple blog to keep track of my projects. I decided to use CKeditor as the wysiwyg editor. I was able to get all of it to work except for the image portion of it. I'm not able to view the images in the server when I hit "image browse", and whenever I upload an image, it does upload but I can't view it. It pops up as a red 'X'. Link to screenshots showing what's happening: http://imgur.com/a/ODk8p Below is the code I have where I added CKEditor to my installed apps my project

webpage css overrides ckeditor 3 style

半世苍凉 提交于 2019-12-10 11:17:49
问题 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

How can I apply a @media print style to a ckeditor instance?

最后都变了- 提交于 2019-12-10 11:14:38
问题 I have tried defining a @media style in the page as well as the external file that I am passing ckeditor in the config but neither seems to have any effect when I click the print button in the toolbar. 回答1: This example (framed) should give you some ideas (jsFiddle): CKEDITOR.replace( 'editor', { plugins: 'toolbar,wysiwygarea,sourcearea,print,basicstyles', on: { // When CKEditor DOM is loaded, append stuff to <head>. contentDom: function() { var doc = this.document, head = doc.getHead(); //

CKeditor populate dialog select with Ajax

随声附和 提交于 2019-12-10 11:07:13
问题 I am trying to populate my CKeditor dialog selectbox with ajax. The following is from my plugin.js file: ... { type : 'select', id : 'style', label : 'Style', setup : CKEDITOR.ajax.post( '.../ckeditor/plugins/simpleLink/ajax.php', JSON.stringify( { foo: 'bar' } ), 'application/json', function( data ) { console.log( data); }), items : [ ['--- Select something ---', 0] ], commit : function( data ) { data.style = this.getValue(); } } ... The ajax output looks like this: ["Basketball","basketball