FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

How to modify toolbar

Last post 08-08-2008, 10:48 AM by RickHolc. 3 replies.
Sort Posts: Previous Next
  •  08-07-2008, 2:39 PM 9350

    How to modify toolbar

    Hi,

    Is there a way to remove the bottom tabs for Design and HTML views? I am dealing with users who aren't tech-savvy and won't understand the HTML view. I am using this control to allow pasting of rich content (from Microsoft Word for example) which will include bullets and images and such.

    Also, if a user pastes in an image, will I have a problem on the server side with the image linking back to the user's local hard drive location or is the control smart enough to handle this?

    Thanks,
    Kevin

  •  08-07-2008, 5:27 PM 9352 in reply to 9350

    Re: How to modify toolbar

    First answer:

    ftbReturn.EnableHtmlMode = False

    Second answer is reference to the image question. When a user pastes an image, they are actually only pasting a link to that image. So the answer to your question is yes you will have a problem because the control cannot handle uploads to web servers of images. You will need to create a seperate process for this. You may consider allowing the user to upload an image and then giving them the full path to the image for pasting into the "Insert Image" button. I am facing the same problem and am not 100% sure how I am going to approach this yet!

     

     

  •  08-08-2008, 9:42 AM 9354 in reply to 9352

    Re: How to modify toolbar

    Thanks for the reply. I am wondering, if the user pastes from a Microsoft Word document that has imbedded images, do we still have the same problem?
  •  08-08-2008, 10:48 AM 9355 in reply to 9354

    Re: How to modify toolbar

    The embedded images in a Word document are actually links to images that Word has placed in the users windows temp directory so the same problem exists. If you paste a Word document to the FTB control, the images will not be displayed. However the links (to the local files) are in the HTML if you look closely. I guess it would be possible to search the FTB text field for the string file:/// after the user submits the page and use that to build an upload page. In other words, look for all local links and prompt the user to upload the file to the web server. After the upload is complete, use the replace function to replace the local file link with the new server file link. Did that make sense? Keep in mind all of this is outside the FTB and is code you will need to write.

     

View as RSS news feed in XML
www.freetextbox.com