This is a migrated thread and some comments may be shown as answers.

content creation from template

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 19 Jun 2009, 02:00 PM
I am trying to evaluate Rad Editor to see if it can be used to create an interface similar to what can be found at:

http://www.vistaprint.com/vp/ns/studio3.aspx?pf_id=126&combo=21921.85.39.13758%7c13758%2c13756%7c952%7c0&uei=9125&icparts=yes&ag=true&combo_id=72221&ssc=1&filter=9%3a10013%7c%7c1%2c11%3a10017%7c%7c1%2c3%3a10002%7c%7c1&xnav=previews&rd=3&referer=http%3a%2f%2fwww.vistaprint.com%2foversized-postcards%2fgallery.aspx%3fpg%3d2%26preid%3d4%26rd%3d2%26GP%3d6%252f19%252f2009%2b9%253a42%253a13%2bAM

The first difference I notice is that the example tool has the ability to add "text boxes" to the content. These are not HTML form textboxes, but are more like the sort textboxes one can add into office documents. They have visible "dotted line" borders which are used to define the box edges and are not actually part of the content. These borders can also be used to resize the box. I don't believe there is a built-in tool for this sort of textbox. Has anyone created anything like this, or are there any plans for Telerik to include this tool?

I took a look and this type of text box is "almost" like the standard htm fieldset (or group box as telerik calls it in the editor). The difference is that there is no legend and no border either. I wonder if there were a way to specify a dotted border when the group box is hovered over in "Edit Mode" nad not have this border appear in the Preview?

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 24 Jun 2009, 01:37 PM
Hi Albert,

The demo that you are referring to is not really a WYSIWYG editor as such. It is no wonder that it only has a couple of options, and adding text is done by forcing the user to type in a popup textbox.

It is this very fundamental difference that allows this custom-tailored solution to produce layouts (and those are in fact most probably processed on the server-side to produce the end result).

The RadEditor, on the other hand, is meant to be a general tool that should be used for content creation more often, rather than for complete page layouts.

Of course, one thing you can do is implement a custom tool in the editor with similar capabilities. It should use the pasteHtml method to insert a DIV tag with style="border:1px dotted grey;". In IE this will make the box resizeable as well

A similar approach is taken in the following demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/customtools/defaultcs.aspx

Please examine the second custom tool (Insert Custom Date).


Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Tervel
Telerik team
Share this question
or