Copied to clipboard

Flag this post as spam?

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


  • Jahan 20 posts 52 karma points
    Oct 04, 2016 @ 14:30
    Jahan
    0

    Get the value of Rich Text Editor in Umbraco backoffice

    I've defined a property that is called Replyand the document type is RichTextEditor.

    I cannot get the value of Reply. This problem is only for properties that type of it is RichTextEditor!!!

    How can I get the value of Rich Text Editor in Umbraco backoffice?

    I've used Umbraco 7.x and ASP.NET MVC.

    angular.module("umbraco").controller("Reply.controller", function ($scope, $http, $routeParams) {
        $scope.SendReply = function () {
            var contentId = $routeParams.id;
            var replyText = $("#Reply").val(); // without value ??? (type of Reply is RichTextEditor)
            var email = $("#Email").val();     // It's OK.
            var dataObj = {
                ReplyText: replyText,
                ContentId: contentId,
                Email: email,
            };
            $http.post("backoffice/Reply/ReplyToIncomingCall/ReplyMessage", dataObj).then
            (
                function (response) {
                    alert("YES!");
                    //TODO: 
                }
            );
        }
    });
    
Please Sign in or register to post replies

Write your reply to:

Draft