Share via


Storing HTML code in SharePoint List

Question

Tuesday, August 30, 2011 6:55 AM

Hi everyone.   I am currently trying to build a simple HTML email template tool with SharePoint.  Basically my goal is to create a HTML Template collection page in SharePoint, using customer list.  List will have Template name and Email contents. In custom list, I created two fields: Email Template Name field and  multiline text field for body text.  Then for body text field, I selected rich text editor. But I have problem here.  I need to store email in HTML format, and rich text editor does not store messages in html code. Is there a HTML editor available to use for custom list? Ideally I want user to create their own HTML email body text using WYSWIG html editor, and store messages in raw HTML Code in sharePoint list... is this even possible??

If I cannot use the sharepoint's basic list feature, what other options do I have? 

 

Thank you!

 

All replies (5)

Tuesday, August 30, 2011 8:27 AM âś…Answered

Well

 

 

Create a custom form , wher the user fill the link ( http address ) as I said before, and in that custom form, use javascript to get html code for that location. An example for javascript function can be found at

http://www.dotnetcurry.com/ShowArticle.aspx?ID=76&AspxAutoDetectCookieSupport=1

romeo donca


Tuesday, August 30, 2011 7:22 AM

Hi,

If i understand ur question correctly then u can select the plain text option in rich text editor and then copy paste the html u want to save.

Thanks.


Tuesday, August 30, 2011 7:47 AM

Hi

another option it's to save your mail templates on your web , or shared folder, and in your list create a column - link type, in which you add the link of template location

So you don't need to edit the template from list, you edit directly on share,

romeo donca


Tuesday, August 30, 2011 7:47 AM

Thanks for your reply Robin!

 

Initially, that was my solution.  I told my user to create HTML email in word, and save html code into sharepoint. However, my boss doesn't like the idea :(  She wants to somehow integrate WYSWIG html editor like freetextbot (http://www.freetextbox.com/ ) into sharepoint and allow user to create and store html email in sharepoint.


Tuesday, August 30, 2011 7:56 AM

Thank you for your reply Romeo.  Now, if we do this, how would we read HTML codes in html file to string value?  We need to save HTML codes in string value...