how to get the stored text of that id in richtextbox

I'm trying to get the document in richtexteditor after adding it in edit popup i tried using getdocument,getetext but its not working using angularjs.

while editing 
this is the code in js
    $scope.abcd12= function ()
        {
               target = $("#rteSample").ejRTE("instance");
             
                $scope.xyz= response.data.abc;
                target = $scope.xyz;
                target.getSelectedHtml();
}



Attachment: 01_8e93b852.rar

1 Reply

KR Keerthana Rajendran Syncfusion Team March 14, 2018 07:19 AM UTC

Hi Shalini,   
   
Thank you for contacting Syncfusion Support.   
   
We have prepared a sample with two-way binding of RTE value with another text area through ng-model. The same can be done with input element too. Also, we have inserted RTE content into input box through getText and getHtml methods of RTE and this works fine at our end. Please refer to the below code   
   
<div id="control" >   
                       <textarea id="rteSample" ej-rte e-width="100%" e-value="rteValue" e-minWidth="150px"></textarea>   
                        </div>    
                        <div id="binding"><h3>Textarea </h3>   
                                    <textarea name="scroll" class="input ejinputarea" ng-model="rteValue"></textarea>   
                        </div>    
                   <button id="post" ng-click="myFunc()">Enter content into input box</button>   
                    <br/>   
                  <div id="text"><h3>Input </h3>   
                    <input type="text" id="edit" />   
                        </div>   
   
  angular.module("myApp", ['ejangular']).controller("editor", function ($scope) {   
                           
               $scope.rteValue = "The Rich Text Editor (RTE) control is an easy to render in client side.";   
               $scope.myFunc = function() {   
                 var target = $("#rteSample").ejRTE("instance");   
                $("#edit").val(target.getText());   
              // $("#edit").val(target.getHtml())   
    };   
        });   
   
We have prepared a sample for your reference. Please refer to the below link   
   
   
   
   
   
Regards,   
Keerthana.   
 


Loader.
Up arrow icon