Integrate a template into the tiny mce editor using file upload control

Last Reply on Mar 27, 2012 10:58 AM By lakshmipri

Posted on Mar 26, 2012 11:34 PM

how to integrate a template into the tiny editor using file upload control is it possible i have done the same with image but i dont know how to use for template for content mangement system...

You are viewing reply posted by: lakshmipri on Mar 27, 2012 10:58 AM.
Posted on Mar 27, 2012 10:58 AM

 template  like  predefined Html/css template

 

for eg i have add the template manually by the following code

 

 

template_templates: [
                {
                    title: "red",
                    src: "Template/redyellow/Website/about.html"

                },

                {
                    title: "Law",
                    src: "Template/Law/index.html"
                },
               {
                   title: "Business",
                   src: "Template/Blue_Business/index.html"
               },
               {
                   title: "asubtleorange",
                   src: "Template/asubtleorange/index.html"
               },
               {
                  title:" 110100013",
                  src: "Template/110100013/index.html"
                                 }
        ]

 

but i need it with file upload control...  like the image is added with tiny editor using the following code

 

 if (FileUpload1.HasFile)
        {
            string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
            FilePath = "editor_image/" + FileName;
            FileUpload1.SaveAs(Server.MapPath(FilePath));
            editor.Text += string.Format("<img src = '{0}' alt = '{1}'/>", FilePath, FileName);
        }

 

like the above code i need to add the html/style sheet template.