Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • George 58 posts 165 karma points
    Feb 02, 2015 @ 08:58
    George
    0

    Initializing uCKeditor in ASP masterpage template

    Hello,

    We happen to be using a different syntax for our templates:

    <%@ Master Language="C#" MasterPageFile="~/masterpages/Navigation.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="pageContentBodyTopText" runat="server"> <div id="AquaBTTC"> <umbraco:Item field="bodyText" runat="server" stripParagraph="true" /> </div> </asp:Content>

    How can we initialize uCKeditor frontend in this type of syntax for our templates?

    It seems the below code can't be executed in our templates:

    @Html.Raw(uCKEditor.InlineEditorHelper.InlineEditorInitialize())

    We use Umbraco version 7.2.1.

    Any help would be appreciated.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 02, 2015 @ 09:18
    Jan Skovgaard
    0

    Hi George P

    Is it on the frontend that you need to be able to initialize CK editor? Then you should probably check out how to integrate the plugin here http://ckeditor.com/demo rather than using the package since it's intended for use in the Umbraco backoffice only.

    /Jan

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 09:31
    George
    0

    My mistake, the editor will be used as a substitute to TinyMCE so I guess we need to fix it for the "backend".

    I can't find this plugin in the package repository. So I downloaded it manually from here:

    http://our.umbraco.org/projects/backoffice-extensions/uckeditor

    Then I install it using "Install local package" from Developer > Packages

    Then umbraco gets a new Datatype called uCKEditor.

    I change one of our Document Types that has a property using the datatype Umbraco.Tinymce3 to our new uCKEditor datatype.

    The moment I open the page (in Content) that has the above mentioned document type, there is no editor displayed and I get the following error in my browser console:

     Error: Argument 'uCKEditor.uCKEditorController' is not a function, got undefined

    Any ideas how to solve this?

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 09:42
    George
    0

    Created new thread since I failed in describing the problem properly in my OP.

    link : http://our.umbraco.org/projects/backoffice-extensions/uckeditor/feedback/60970-uCKEditor-Installation-through-backoffice-problem

    Mods/Admins, please delete this thread. 

  • Alain 73 posts 520 karma points c-trib
    Feb 02, 2015 @ 11:13
    Alain
    0

    Hi George,

    The code below is Razor syntax:

    @Html.Raw(uCKEditor.InlineEditorHelper.InlineEditorInitialize())

    It is designed to be used within any umbraco MVC templates with Razor syntax, not for webforms/masterpages.

    I don't think it will work properly with asp.net webforms/masterpage.

    Alain

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 11:18
    George
    0

    Thanks for the reply Alain,

    I misinterpreted your installation description.
    I don't need to use uCKEditor on the frontend, I want to replace TinyMCE in our Umbraco installation with it.

    I have created another thread describing the problem better, appologies for multi-posting.
    I can't delete this thread anymore so please delete it if you can. 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies