Hi, i just checked and there is a newer version of CKEditor (3.4.2) , with a little component that i believe to be of interest :"Navigate on the Server". I was wondering how can one update the resources on the oml, using version 5.1... I just wanted to replace all the resources once, withou having to change resources one by one.... Is there any way to do this? On the other hand, all i wanted was for the client to browse on his local system and add an image to the rich text editor. Is this possible with CKEditor? Best Regards, Diogo C S Cordeiro
I'm seeing problems with CKEditor on an AJAX Refresh as well, it says "Loading..." (in the Late Load item) endlessly. :( I'm sure that if I took a look at the JS error stack I'd see the same thing. J.Ja
"<script type='text/javascript'> if (CKEDITOR.instances['" + InputId + "']) {CKEDITOR.remove(CKEDITOR.instances['" + InputId + "']);} </script>" before CKEDITOR.replace( '" + InputId + "' .... and in button "Save" add onclick "CKEDITOR.instances."+InputId+".updateElement();"
"height:'400px', contentsCss:'web.css', removePlugins:'save,templates,forms,about,bidi,print,flash,pagebreak,smiley,specialchar', toolbar:[ ['Source','-','Preview'], ['Cut','Copy','Paste','PasteText','PasteFromWord'], ['Undo','Redo','-','Find','Replace','-','RemoveFormat'], ['Link','Unlink','Anchor'], ['Image', 'Table','HorizontalRule','CreateDiv'], ['Maximize', 'ShowBlocks'], '/', ['Styles','Format','Font','FontSize'], ['Bold','Italic','Underline'], ['NumberedList','BulletedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['TextColor','BGColor'] ]"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; namespace SSImportResources { class Program { const string ssPath = @"C:\Program Files\OutSystems\Service Studio 8.0\ServiceStudio.exe"; static string oml; const string output = "ImportResources.bat"; static string cmd = " -importResource \"{0}\" \"{1}\" \"{2}\""; static StreamWriter file; static void Main(string[] args) { oml = args[0]; if (File.Exists(output)) File.Delete(output); using (file = File.CreateText(output)) { ImportFolder(args[1], args[1]); } Console.WriteLine("Output created at " + output); } private static void ImportFolder(string folder, string basef) { foreach (string f in Directory.GetFiles(folder)) { string c = string.Format(cmd, oml, f, Path.GetDirectoryName(f).Replace(basef, ".")); file.WriteLine("\"" + ssPath + "\" " + c); } foreach(string d in Directory.GetDirectories(folder)) { ImportFolder(d, basef); } } } }
"<script type='text/JavaScript'> if (typeof CKEDITOR === 'undefined') { osjs('#"+InputId+"').after('<span style=""background: tomato; color: white; border: 1px solid red; padding: 3px;font-weight: bold;"">CKEditor not loaded. Please check for errors.</span>') } else { // Does it already exists, then destory it !! if(CKEDITOR.instances['" + InputId + "']) { //CKEDITOR.instances['" + InputId + "'].destroy(); delete CKEDITOR.instances['" + InputId + "']; } // Update function, to trigger events osjs('#"+InputId+"')[0]['ckEditorUpdate'] = function () { setTimeout(function(){ if (CKEDITOR.instances." + InputId +" && CKEDITOR.instances." +InputId + ".checkDirty()) { var editor = CKEDITOR.instances." + InputId + "; osjs('#" + InputId + "').val(osjs(editor.document.getBody().$).html()); editor.resetDirty(); osjs('#" + InputId + "').trigger('onchange'); } },100); }; CKEDITOR.replace( '" + InputId + "', {" + If( Config <> "", Config + ", ", "") + "language: 'en', filebrowserImageUploadUrl: '/CKEditor/Upload.aspx?command=QuickUpload&type=Images', on: { saveSnapshot: osjs('#"+InputId+"')[0].ckEditorUpdate, key: osjs('#"+InputId+"')[0].ckEditorUpdate, afterCommandExec: osjs('#"+InputId+"')[0].ckEditorUpdate, change: osjs('#"+InputId+"')[0].ckEditorUpdate }}); } </script>"
CKEditor 4.6.0 (Under Development)
Hi all!
I've made some fixes and added some new features to the component, but because there are to many changes I'll keep it as "under development" so I can get some feedback.
Here is the change log commented:
What’s New:
Fixed Issues:
Great job!
Hello all,
we implement CK editor in web-block and this block use in popup, first time popup load CKEditor but in second time CK editor not load. please help me to out from this problem .
Is it possible to use the free licensed CK Editor 5 for my production application? Is there a compromise in security when using it?
I would appreciate any assistance in understanding this.
Thank you in advance.
Mounika