CKEditor

Hello,

Anyone know what I have to change to embed this editor into Boonex Dolphin 7.1. I have found some instructions in 6.1 but it doesnt seem to be the same.

 

Quote · 12 May 2013

First step is to see how TinyMCE is included. 

Geeks, making the world a better place
Quote · 12 May 2013

 

First step is to see how TinyMCE is included. 

 Yes you have right. I will reverse engineer the dd and php files to see what I will understand from the diagrams.

In my opinion there should be a section for developers only where specific diagrams are listed.

 

Quote · 12 May 2013

 From a small search in included in the core and not outside. So the quetion is why is not outside so other editors can be used.

It is call in /layout/base/xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">

<xsl:template name="canvas_init">

    <script type="text/javascript">

        <xsl:if test="'client' = /root/urls/xsl_mode">
            document.write = function (s) { };
        </xsl:if>

        function orcaSetupContent (id, body, doc) { }

        tinyMCE_GZ.init({
         plugins : 'table,phpimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,inlinepopups',
         themes : 'advanced',
         languages : 'en',
         disk_cache : true,
         debug : false
        }, function () {  

 

 

First step is to see how TinyMCE is included. 

 Yes you have right. I will reverse engineer the dd and php files to see what I will understand from the diagrams.

In my opinion there should be a section for developers only where specific diagrams are listed.

 

 

Quote · 12 May 2013

As a proposal I would like to suggest to implement a plugin installer as modules has.

Also components to be easier for a user to use them.

 

Quote · 12 May 2013

Yes, and comments are different if you want to change the editor for comments.  Alex has helped me to understand a bit about how the TinyMCE is init in comments.  There is one comment system for all comments.

TinyMCE is set up in /templates/base/scripts/BxBaseEditorTinyMCE.php and there is another file where you assign the different TinyMCE editors which are assign by html=>2,3, etc; can not recall the file off-hand.  If html=>2, then the second TinyMCE configuration will be applied to the textarea.  You would have to have something similar for CKeditor so that all the areas where that is used can pull out the appropriate editor.

Geeks, making the world a better place
Quote · 12 May 2013

 

 From a small search in included in the core and not outside. So the quetion is why is not outside so other editors can be used.

It is call in /layout/base/xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">

<xsl:template name="canvas_init">

    <script type="text/javascript">

        <xsl:if test="'client' = /root/urls/xsl_mode">
            document.write = function (s) { };
        </xsl:if>

        function orcaSetupContent (id, body, doc) { }

        tinyMCE_GZ.init({
         plugins : 'table,phpimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,inlinepopups',
         themes : 'advanced',
         languages : 'en',
         disk_cache : true,
         debug : false
        }, function () {  

 

 

First step is to see how TinyMCE is included. 

 Yes you have right. I will reverse engineer the dd and php files to see what I will understand from the diagrams.

In my opinion there should be a section for developers only where specific diagrams are listed.

 

 

 This is just for the forum; back when the forum was a separate product and before it was integrated; so it has its own TinyMCE initi.  In 7.1.2, this is being removed and the forum will use the same TinyMCE setup as the rest of Dolphin; this is a good thing, you only have to work in one area.

Geeks, making the world a better place
Quote · 12 May 2013

To integrate new rich editor you need to create new file, similar to templates/base/scripts/BxBaseEditorTinyMCE.php, for example MyPrefixEditorCKEditor.php

Then add new record to sys_objects_editor table.

Then change sys_editor_default record in sys_options to point to your new editor.

It can be done without any modifications in the base code and it is better to implement it as separate module.

Rules → http://www.boonex.com/terms
Quote · 13 May 2013

@Alext: I did not really understand how the system including that?

FAZING WEB - WEB AGENCY !
Quote · 13 May 2013

The system automatically including it based on sys_editor_default option from sys_options table.

@Alext: I did not really understand how the system including that?

 

Rules → http://www.boonex.com/terms
Quote · 14 May 2013

OK, this sounds like a fun project to do, thanks for the information Alex.

Geeks, making the world a better place
Quote · 14 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.