Welcome Guest Search | Active Topics | Sign In | Register

Editor Options
drj
Posted: Friday, December 18, 2009 2:40:29 PM
Rank: Member
Groups: Member

Joined: 12/18/2009
Posts: 11
Hi, I am using the editor. I want to file or long text and graphics from a database to the editor for my users to study. I do not my users to be able to edit , just to see. I am creating a tutorial and loading text from my mysql data base into the editor. I am using VB, how can this be done? Can it be done? I just purchased the product with the hope I could do this.

also can I paste html into the editor? see example html below.

thanks


<tr>
<td class="style7" style="border: thin solid #000000; width: 283px;" valign="top">
3. Business Value - Direct Capitalization<br class="style28" />
<span class="style28">
<asp:Image ID="Image4" runat="server" Height="60px" ImageUrl="~/Equations/BusinessValCap.gif" Width="110px" />
</span><br class="style28" />
Where E1 is the exected Net Cash Flow to Equity, k is the
discount rate ,&nbsp;g is the long term sustainable growth
<br class="style28" />
</td>
<td align="center" class="style25" nowrap="nowrap" valign="top">
<span class="style40">3. Set values for Business Value<br />
<br />
E1=</span><asp:TextBox ID="E1TB" runat="server" Font-Size="X-Small" Width="52px">10</asp:TextBox>
<span class="style40">&nbsp;&nbsp; k=&nbsp; </span>
<asp:TextBox ID="k3TB" runat="server" Font-Size="X-Small" Width="52px">10</asp:TextBox>
<span class="style40">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g= </span>
<asp:TextBox ID="g3TB" runat="server" Font-Size="X-Small" Width="52px">3</asp:TextBox>
<span class="style40"><br />
<br />
PV =
<asp:Label ID="BizVal" runat="server" Text="Label"></asp:Label>
&nbsp; </span>&nbsp;&nbsp;&nbsp;
<asp:ImageButton ID="ImageButton10" runat="server" ImageUrl="~/gobutton.gif" />
<br />
</td>
</tr>
eo_support
Posted: Friday, December 18, 2009 2:45:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thank you very much for your business. I think the best way is for you to allow them to edit whatever way you want, but just do not save it back to your database.

You can always paste HTML into the editor from the HTML view (You can switch between Design/HTML/Preview mode).

Thanks!

drj
Posted: Friday, December 18, 2009 5:35:23 PM
Rank: Member
Groups: Member

Joined: 12/18/2009
Posts: 11
I will try paste HTML and see what happens. You did not say anything about graphics - I need to paste a combinations of text and graphics in the editor or the editor is no use to my application , also I am using this editor as part of my testing and tutorial - it does not make sense to let the user edit the data of if there is no way to disable them from doing this then this editor will not work for me , if you product cannot perform these functions then I would like a refund , I will have to go with another editor. Please let me know - I need to show a combination of text and graphics in the editor and I have to be able to disable editing - can it do this? thanks Jerry
eo_support
Posted: Friday, December 18, 2009 7:43:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can disable editing by putting the editor into preview mode. As mentioned about in the previous post, the Editor has three modes: In design mode user will be able to edit directly; in HTML mode user will be able to edit the HTML code; in preview mode user will be able to see the result but not able to edit anything. By default, user can directly switch between all three modes by clicking the tab buttons in the footer area. You can also:

1. Disable any mode by setting the mode's button text to empty. For example, if you do not want user to enter "Design" mode to edit your editor content, you can set the editor's DesignTabButtonHtml to an empty string;

2. Automatically switch the editor to any mode with JavaScript. The following code automatically switches the editor to preview mode:

Code: HTML/ASPX
<eo:Editor ID="Editor1" ClientSideOnLoad="disableEditor" .... >
....
</eo:Editor>


Code: JavaScript
function disableEditor()
{
    setTimeout(function()
    {
        //Get an instance of the editor object
        var editor = eo_GetObject("Editor1");

        //Put the editor into preview mode so 
        //that the contents is read only
        editor.setMode(2);
    }, 200);
}


You can display or put anything in the editor. Either image or text or even video. It's an HTML editor and it handles pretty much everything that you do with HTML.

Our Editor is a high end HTML Editor and it should have pretty much everything you would expect from a HTML Editor. However it is not made for everyone. So you may also want to explore the documentation and samples to get an idea of what it has and what it does not has. Also we want you to aware that while we do our best to show you what can be done and how to do it, we do expect our users to have basic Web development and ASP.NET skill. So if what we have explained to you about the three modes doesn't make any sense to you at all, then our product is probably not for you. You can take a look of our support policy here:

http://www.essentialobjects.com/forum/postst1368_Product-support.aspx

Please take a look of that and see whether that is a problem for you as well. We welcome you as a customer if both the product and the support policy meets your need. However if you have a serious problem with either, then it will be much better for you evaluate other options and we will be more than happy to issue you a refund in that case.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.