How to make the Default text property of an Editable text web part editable on a Page tab

HelenaG Grulichova asked on April 26, 2012 06:35

How to make the Default text property of an Editable text web part editable on a Page tab

Correct Answer

HelenaG Grulichova answered on April 26, 2012 06:35

If you want to display the content you have entered in the Default text property of your Editable text web part to an editor’s field to make it editable on a Page tab, please open the ~\CMSWebParts\Text\editabletext.ascx.cs file and update the code as it is shown below. The code is located around the line 711 in the LoadContent() method:


case CMSEditableRegionTypeEnum.HtmlEditor:
         // HTML editor
         if ((forceReload || (!RequestHelper.IsPostBack()) || (viewMode != ViewModeEnum.Edit)) && (this.htmlValue != null))
         {
             if (content == "") this.htmlValue.ResolvedValue = DefaultText;
             else this.htmlValue.ResolvedValue = content;
         }
         break;


-jh-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.