locked
How to override ckeditor default configure on a specific page. RRS feed

  • Question

  • User1487175000 posted

    Hi,

    I want to override default ckeditor configure on a specific page. However i tried with the following code but it does not work for me. also get the following error.

    Cannot read property 'getEditor' of undefined
    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="testCKEditor.aspx.cs" Inherits="testCKEditor" %>
    <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
        <script type="text/javascript">
            $(document).ready(function () {
                CKEDITOR.replace('ckeditor', {
                    customConfig: '/customConfiguration/config.js'
                });
            });
        </script>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
        <div>
            <CKEditor:CKEditorControl ID="ckeditor" runat="server"></CKEditor:CKEditorControl>
        </div>
    </asp:Content>



    /

    Thursday, August 11, 2016 12:09 PM

Answers

  • User61956409 posted

    Hi shahid.majeed,

    Please make sure if you define custom configuration file first, and you could read the following API documentation to know how to use a custom configuration file.

    http://docs.ckeditor.com/#!/guide/dev_configuration

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 12, 2016 7:38 AM