1

Topic: CKEditor

I just wrote a plugin to integrate the popular CKEditor into Monstra:

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)

2

Re: CKEditor

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

3

Re: CKEditor

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

4

Re: CKEditor

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

5

Re: CKEditor

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

pesterevilya's Website

6

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 ::::..

nakome's Website

7

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

pesterevilya's Website

8

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 ::::..

nakome's Website

9 (edited by nakome )

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 ::::..

nakome's Website

10

Re: CKEditor

nakome wrote:

This working for me.

Thanks a lot!

pesterevilya's Website

11

Re: CKEditor

wink

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

nakome's Website

12 (edited by pesterevilya )

Re: CKEditor

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

pesterevilya's Website