ckeditor

How can I manage to have two different toolbars in CKEditor for two different groups?

断了今生、忘了曾经 提交于 2019-12-11 06:54:52
问题 I am using Zikula 1.4.6 with several modulstudio generated modules. These modules do have scribite plugin activated. If I use the "full" toolbar I do see all my modules in this toolbar. But I have to create a stripped down toolbar for my normal users. There they should not have acces to all modul plugins. So I generated the "special1" toolbar accordingly. The "special2" toolbar is prepared for my advanced users named "redakteure". Zikula offers stil the possibility to use the overwrite.yml

CKEditor widgets forget they're widgets and become useless

走远了吗. 提交于 2019-12-11 06:46:56
问题 I have this CKEditor: http://jsfiddle.net/rudiedirkx/kwzcxrLj/ (no button image, the most right 3 buttons) It adds widgets like this: // Add widget. editor.widgets.add('ezhealth_widget_' + size, { "template": '<div class="ezhealth-ckeditor-widget size-' + size + '">' + '<h3 class="header editable">Title</h3>' + '<div class="left"><p>Content</p></div>' + '<div class="right"><p>Content</p></div>' + '</div>', "editables": { "header": { "selector": '.editable', }, "left": { "selector": '.left', }

Select text inside editable node in CKEditor

别等时光非礼了梦想. 提交于 2019-12-11 06:34:17
问题 I have a CKEditor widget with some tables with editable fields. I need to select all the text inside the field when a user clicks it, to make changing the text faster. For now I was able to come up with this: editor = CKEDITOR.instances.editor1; widget = editor.widgets.instances[0] $.each(widget.editables, function(e) { element = $(this.$); element.on( 'click', function( ev ) { elementId = editor.document.getActive().getId() editor.getSelection().selectElement( editor.document.getById

Traversing DOM nodes in CKEditor-4

亡梦爱人 提交于 2019-12-11 06:28:49
问题 We have a bug at this CKEditor plugin, and a generic solution is like to this, applying a generic string-filter only to terminal text nodes of the DOM. QUESTION : how (need code example) to traverse a selection node ( editor.getSelection() ) by CKEditor-4 tools, like CKEDITOR.dom.range? 回答1: First step will be to get ranges from current selection. To do this just call: var ranges = editor.getSelection().getRanges(); This gives you an array of ranges, because theoretically (and this theory is

CKEditor Link input not working in modal

ⅰ亾dé卋堺 提交于 2019-12-11 06:17:39
问题 I've got a project in which I use a modal with a form and a ckeditor and the Link input doesn't work. Here's a fiddle that recreates this problem: http://jsfiddle.net/8t882a2s/3/ And the code of this example. HTML: <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×<

Insert ckeditor html code into the database

淺唱寂寞╮ 提交于 2019-12-11 05:59:26
问题 I am trying to insert the ckeditor text into database,I am able to print the code in html format,while inserting that into the db,iam getting the fallowing error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1 INDEX.PHP <html> <head> <script type="text/javascript" src="ckeditor/smaple.js"></script> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> </head> <body> <form

Error adding CKEditor of Primefaces Extensions

旧巷老猫 提交于 2019-12-11 05:49:39
问题 I am trying to incorporate CKEditor (Primefaces Extensions) to my project to replace p:editor. The problem is that when loading the page shows the following error in the browser console: Error: [CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.2.xhtml?ln=primefaces-extensions&v=6.2&v=6.2". Should be: http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.xhtml?ln=primefaces

How to ensure that ckeditor has focus when displayed inside of jquery-ui dialog widget

流过昼夜 提交于 2019-12-11 05:48:17
问题 I have used CKEDITOR.appendTo( "my_div" , null , my_string ) to create an instance of ckeditor ... no problem. however, the LINK button opens a non-interactive LINK dialog box. So, is there some config setting that it supposed to be manually set to true, perhaps? EDIT 1 ... I will explain what I meant by non-interactive LINK dialog box ... When I click the ckeditor's LINK button (the one that looks like a chain-link), it opens a LINK dialog box which has a input field for me to enter a URL,

CKEditor - Possible to have context menu for basic styles?

旧街凉风 提交于 2019-12-11 05:29:48
问题 Is it possible to have basic styles(like bold, italic, underline, etc) in right click context menu? 回答1: Of course, it is. Firstly, you have to add context menu group and items. For example, editor.addMenuGroup('basicstyles', 1); editor.addMenuItems( { 'bold': { label: 'Make it bold!', command: 'bold', group: 'basicstyles' } // add here more buttons like this } ); Next, you need to add context menu listeners.Simply, it looks like: editor.contextMenu.addListener( function( element, selection )

CKEditor embed Image, Video, link and many others not working in Modal

扶醉桌前 提交于 2019-12-11 04:27:36
问题 Hello I am using bootstrap modal popup to open ckeditor. It's working but when I to click the image, video link and any others icon in that dialog opens, but is not clickable. I found this JS fix but it doesn't seem to work with Bootstrap 4. <script> CKEDITOR.replace('help_ldesc'); //CKEDITOR.replace('help_ldesc1'); $.fn.modal.Constructor.prototype.enforceFocus = function() { var $modalElement = this.$element; $(document).on('focusin.modal',function(e) { var $parent = $(e.target.parentNode);