?
Solved

TinyMCE

Posted on 2007-07-26
4
Medium Priority
?
618 Views
Last Modified: 2008-03-06
Hello,

I need some tips on how  to implement TinyMCE on a very simple Asp.net website. I tried the documentation  on wiki pages, but were not much of an help. Any good links or examples???
 
0
Comment
Question by:grafixgirl
  • 2
  • 2
4 Comments
 
LVL 24

Expert Comment

by:glcummins
ID: 19582093
TinyMCE is rather easy to implement. You simply include the Javascript file in your page, and then create a textarea. The TinyMCE controls are automatically created on the textarea when the page loads.

TinyMCE just acts as a filter, converting your control selections and text into HTML. The resulting HTML code is submitted when you submit the form.

I do not know of a good tutorial other than what is provided with TinyMCE itself. However, if you want to post your HTML form here, along with a descriptiong of your desired result, I will be happy to help get you to the right place.
0
 

Author Comment

by:grafixgirl
ID: 19583112
Thank you so much for responding, I am on trip right now, so can't try your tips, but here are some of my general questions.
1- I am using Asp.net, I have five aspx pages and one master page. I want to know shall I just include the Tinymce script in the master page, so every time I open a page, it would open up with the editor(text area).
2- How does save work. Are there two pages for each page, one editable(tinymce) and the other page to display.
3- I was also thinking when submit a form to save, I can save the entire html in a db and when the page opens to view, it pulls all the html from db, this way I will only have one 1 page but 2 master page.

I hope I make sense. if not then lets assume, I have a simple html page:

<html>
<tinmce .... SCRIPT>
<body>
<form method="post" action="new.html" >
<textarea> Hello World! </textarea>
</form>
</body>
<html>

--- In form does it write on itself or all the values are stored in a new page?
I'll sincerely appreciate all your response.
Thank you
0
 
LVL 24

Accepted Solution

by:
glcummins earned 1500 total points
ID: 19583497
1. I would recommend including the TinyMCE script in the master page in an area that will be loaded regardless of which individual page is loaded. That way you do not need to edit several pages.

2. When the user inserts data into the TinyMCE field and then submits your form, the entire HTML content of the textarea will be sent. You will need to access the form element in your script to retrieve the data, and then save it in the manner that is most suitable. I am not an ASP developer so I cannot provide specific instructions on retrieving the form field data, but I believe you will find the information you need here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconintroductiontowebforms.asp

3. I would recommend saving the HTML result in a database field, and loading it as needed. The other alternative is to save it to a flat file, but that can become cumbersome depending on how many will people will be submitting such information, and how large the submissions will be.
0
 

Author Comment

by:grafixgirl
ID: 19612899
Now I got the setup all set ... I am able to open a page pulled from a db in an editable window and edit the content, but now my question is how to save the page.
to be specific, how do I insert the updated content in the db using the form submit/save.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question