1. 0
No votes yet
5683112 downloads save
  • Add to my editor
  • Download

    CKBuilder

    The recommended way to install all CKEditor add-ons is to create a custom build by using CKBuilder. To do that, click the Add to my editor button on the plugin page. When you are done, click the Build my editor button on the right side of the page to go to CKBuilder.

    Add-on Installation Instructions

    If you want to add the plugin manually, you will need to:

    1. Extract the downloaded plugin .zip into the plugins folder of your CKEditor installation. Example:
      http://example.com/ckeditor/plugins/save
    2. Enable the plugin by using the extraPlugins configuration setting. Example:
      config.extraPlugins = 'save';
    3. Download and configure all its dependencies, too.

    Add-on Dependencies

    No additional dependencies.

Save

When CKEditor is placed inside an HTML form, this plugin saves the editor content and submits it to the server. It also adds the Save toolbar button which submits the form that contains the editor.

Note: This functionality only works for classic editor placed inside a <form> element on the page.

Read more about saving editor content in the Getting and Saving Data in CKEditor article.

Releases

Plugin versions CKEditor versions
4.4 4.3 4.2 4.1 4.0

Version: 4.4.7 - Download

Show notes

Another bug-fixing release for the 4.4 series.

compatibleunknown compatibilityunknown compatibilityunknown compatibilityunknown compatibility

Version: 4.3.5 - Download

Show notes

Another bug fixing release for the 4.3 series

unknown compatibilitycompatibleunknown compatibilityunknown compatibilityunknown compatibility

Version: 4.2.3 - Download

Show notes

Another bug fixing release for the 4.2 series

unknown compatibilityunknown compatibilitycompatibleunknown compatibilityunknown compatibility

Version: 4.1.3 - Download

Show notes

The next bug fixing release for CKEditor 4.1.x series

unknown compatibilityunknown compatibilityunknown compatibilitycompatibleunknown compatibility

Version: 4.0.3 - Download

Show notes

Another bug fixing release for the 4.0 series

unknown compatibilityunknown compatibilityunknown compatibilityunknown compatibilitycompatible
Log in to rate this plugin

Comments

Post a comment
  1. The content of this field is kept private and will not be shown publicly.
  1. Once I needed not just post my form, but do some other actions, so i had to override plugin like this:

        (function() {
            var saveCmd = {
                readOnly: 1,
    
                exec: function(editor) {
                    if (editor.fire('save')) {
    
                        var $form = editor.element.$.form;
    
                        if (editor.config.onSave) {
                            editor.config.onSave(editor) // If custom action is set, do it.
                        } else if ($form) {
                            try {
                                $form.submit();
                            } catch (e) {
                                // If there's a button named "submit" then the form.submit
                                // function is masked and can't be called in IE/FF, so we
                                // call the click() method of that button.
                                if ($form.submit.click)
                                    $form.submit.click();
                            }
                        }
                    }
                }
            };
    
            var pluginName = 'save';
    
            // Register a plugin named "save".
            CKEDITOR.plugins.add(pluginName, {
                lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
                icons: 'save', // %REMOVE_LINE_CORE%
                hidpi: true, // %REMOVE_LINE_CORE%
                init: function(editor) {
    
                    // if ( editor.elementMode != CKEDITOR.ELEMENT_MODE_REPLACE )
                    //     return;
                    // I do not need this, but you can enable.
    
                    var command = editor.addCommand(pluginName, saveCmd);
                    command.modes = { wysiwyg: !!(editor.element.$.form || editor.config.onSave)};
    
                    editor.ui.addButton && editor.ui.addButton('Save', {
                        label: editor.lang.save.toolbar,
                        command: pluginName,
                        toolbar: 'document,10'
                    });
                }
            });
        })();

     

        function mySave(editor) {
            // do some magic;
        }
    
        config.onSave = mySave;