Topic: CKEditor

I just wrote a plugin to integrate the popular CKEditor into Monstra:
http://www15.speedyshare.com/JgXbY/download/ckeditor-monstra.png

It is the full edition of CKEditor with 3 toolbars and some plugins like syntax highlighting for example. wink

Here is the download link: http://www.speedyshare.com/2jcGa/downlo … onstra.zip

(Don't wonder about the style of the buttons, I'm currently working on a redesign of the admin-panel)

Re: CKEditor

Does it add <p> or unwanted <div>?

Re: CKEditor

Sorry, the download link does not work. The file is not available.

Re: CKEditor

Any chance on fixing the download link?  still not working...

Re: CKEditor

Good day! Can someone write a plugin and implement the latest version of CKEditor?

Re: CKEditor

You can use  Markitup plugin to make new plugin, it's  very ease to make ,and you also learning how to work with the plugins.

This is a demo with cdn.

Demo cdn in jsbin


When I started to make plugins Monstra, I did not know Php.

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

Re: CKEditor

nakome wrote:

You can use  Markitup plugin to make new plugin, it's  very ease to make ,and you also learning how to work with the plugins.

This is a demo with cdn.

Demo cdn in jsbin


When I started to make plugins Monstra, I did not know Php.

I wrote the code:

<?php

/**
 *    CKEditor plugin
 *
 *    @package Monstra
 *  @subpackage Plugins
 *    @author Pesterev Ilya / ZenLabs
 *    @copyright 2014 Pesterev Ilya / ZenLabs
 *    @version 1.0.0
 *
 */

// Register plugin
Plugin::register( __FILE__,
                __('CKEditor!', 'CKEditor'),
                __('CKEditor! — open source WYSIWYG editor', 'CKEditor'),
                '1.0.0',
                'ZenLabs',
                'http://zenlabs.ru/');

// Add hooks
Action::add('admin_header', 'CKEditor::headers');

/**
 * CKEditor Class
 */
class CKEditor
{
    /**
     * Set editor headers
     */
    public static function headers()
    {
        echo ('
            <!-- CKEditor 4.4.4 -->
            <script type="text/javascript" src="'.Option::get('siteurl').'/plugins/ckeditor/ckeditor/ckeditor.js"></script>
        ');

        echo ('<script>CKEDITOR.replace( 'editor_area' );</script>');
    }

}

in the folder \plugins\ckeditor\ckeditor\ I copied files of CKEditor, but when I install the plugin, I have displayed blank screen

Re: CKEditor

The Comma is the problem i think

echo ('<script>CKEDITOR.replace( 'editor_area' );</script>');

Bad

echo ('<script>CKEDITOR.replace( "editor_area" );</script>');

Good

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

9 (edited by nakome 2014-08-23 11:35:16)

Re: CKEditor

This working for me.

Note:  Remember .httaccess file  with Options -Indexes and Allow from all ( See others plugins )

<?php

/**
 *    CKEditor plugin
 *
 *    @package Monstra
 *  @subpackage Plugins
 *    @author Pesterev Ilya / ZenLabs
 *    @copyright 2014 Pesterev Ilya / ZenLabs
 *    @version 1.0.0
 *
 */

// Register plugin
Plugin::register( __FILE__,
                __('CKEditor!', 'CKEditor'),
                __('CKEditor! — open source WYSIWYG editor', 'CKEditor'),
                '1.0.0',
                'ZenLabs',
                'http://zenlabs.ru/');

// Add hooks
Action::add('admin_header', 'CKEditor::headers');

/**
 * CKEditor Class
 */
class CKEditor
{
    /**
     * Set editor headers
     */
    public static function headers()
    {
        echo ('
            <!-- CKEditor 4.4.4 -->
            <script type="text/javascript" src="'.Option::get('siteurl').'/plugins/ckeditor/ckeditor/ckeditor.js"></script>
        ');

        echo ('<script>
                        
                        window.addEventListener("DOMContentLoaded",function(){
                               CKEDITOR.replace( "editor_area" );
                         },false);

            </script>');
    }

}
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

Re: CKEditor

nakome wrote:

This working for me.

Thanks a lot!

Re: CKEditor

wink

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

12 (edited by pesterevilya 2014-08-24 18:06:40)

Re: CKEditor

Check latest version of CKEditor, adapted for the monstra 3.* — http://forum.monstra.org/topic/623/cked … onstra-30/