View Source
  Class TextOnlyValueEditor
  
  Custom value editor which ensures that the value stored is just plain text and that
no magic json formatting occurs when translating it to and from the database values
 
  
  
    Inheritance
      System.Object
      
      
   
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public class TextOnlyValueEditor : DataValueEditor, IDataValueEditor
   
  Constructors
  
  
    View Source
  
  TextOnlyValueEditor(DataEditorAttribute, ILocalizedTextService, IShortStringHelper, IJsonSerializer, IIOHelper)
  
  
  Declaration
  
    public TextOnlyValueEditor(DataEditorAttribute attribute, ILocalizedTextService localizedTextService, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper)
   
  Parameters
  
  
    View Source
  
  TextOnlyValueEditor(DataEditorAttribute, IShortStringHelper, IJsonSerializer, IIOHelper)
  
  
  Declaration
  
    public TextOnlyValueEditor(DataEditorAttribute attribute, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper)
   
  Parameters
  
  Methods
  
  
    View Source
  
  ToEditor(IProperty, String, String)
  A method used to format the database value to a value that can be used by the editor
 
  
  Declaration
  
    public override object ToEditor(IProperty property, string culture = null, string segment = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | IProperty | 
        property | 
         | 
      
      
        | System.String | 
        culture | 
         | 
      
      
        | System.String | 
        segment | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         |