﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Thu, 27 Sep 2012 21:52:57 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;HI John,&lt;/p&gt;&lt;p&gt;Sorry for not explain it more detail for you. We must delete the server-side method to remove the toolBar first. I can use that code in your sample and it works. Here's the modified sample. Could you check my sample and tell me if there's any misconfiguration on that sample?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Thu, 27 Sep 2012 07:10:02 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;I tried this code on client side and it doesn't work.  I tried this on the sample that I uploaded in a previous message.&lt;/p&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Wed, 26 Sep 2012 22:08:51 GMT</pubDate><dc:creator>bernard</dc:creator><description>Hi John,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I can replicate your issue in our local end using your code from another topic. This problem might be happen because WebSpellChecker want to add ToolBar menu on Standard ToolBar. As you can see above v3da31.ClientToolBar[1] is Standard ToolBar that we have removed before. Javascript couldn't find the toolbar so it will throw error message like that. We couldn't do this in server side. And I suggest you to use Client-side event to do this. Here's the code:&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;function WebTextEditor1_OnInitialize()
{
    var WebTextEditor1 = ISGetObject("WebTextEditor");
    document.getElementById("WebTextEditor1_tbStandard_f").style.visibility = "hidden";
    return true;
}&lt;/pre&gt;&lt;p&gt;You can hide the toolbar from client side by using that code. Is this possible to use this code in your scenario? Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Wed, 26 Sep 2012 07:17:09 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Hi Bernard,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;   The code you supplied does remove the items, but I do get a JS error which follows:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;Line: 7
Error: 'ClientToolBar.1' is null or not an object&lt;/pre&gt;

&lt;p&gt;Line 7 is:&lt;/p&gt;&lt;pre&gt;v3da31.ClientToolBar[1].Enable("cmdSpellChecker")&lt;/pre&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Tue, 25 Sep 2012 22:09:30 GMT</pubDate><dc:creator>bernard</dc:creator><description>Hi John,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;In Minimal ToolBarMode, there are only 2 ToolCommands inside Standard ToolBar (cmdInsertFromWeb and cmdMediaGallery). However we couldn't remove the ToolCommands from ToolBar because ToolBar need at least 1 item. So for doing this, we can remove all the Standard ToolBar from WebTextEditorToolBar. Here's the code:&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;Dim tb As WebTextEditorToolBar
tb = e.GetToolBarByCategory(WebTextEditorToolBarCategory.Standard)
e.ToolBar.Remove(tb)&lt;/pre&gt;&lt;p&gt;You can try that code and tell me if there's anything wrong in my code. Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Tue, 25 Sep 2012 07:04:46 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Hi Bernad,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;   That is the code I am using (converted to VB) but I get the following error at tb.ToolCommands.RemoveAt(2):&lt;/p&gt;&lt;pre&gt;Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index 
&lt;/pre&gt;
&lt;p&gt;I changed it to tb.ToolsCommands.RemoveAt(0) and even tried tb.ToolsCommands.RemoveAt(1), it removed the buttons, but the editor was messed up and you ciouldn't enter any text.&lt;/p&gt;
&lt;p&gt;I am using the ToolBarMode="Minimal", if I change it to ToolBarMode="Standard" then your code works, but then I would have to remove all other buttons not needed.&lt;/p&gt;
&lt;p&gt;Attached is the page I am using.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Mon, 24 Sep 2012 23:31:40 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;You can remove the command from ToolBar in InitializeToolBar event. Here's the code:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;protected void WebTextEditor1_InitializeToolBar1(object sender, WebTextEditorToolBarArgs e)
{
    WebTextEditorToolBar tb = e.GetToolBarByCategory(WebTextEditorToolBarCategory.Standard);
    WebTextEditorToolCommand cmdInsertFromWeb = tb.ToolCommands.GetNamedItem("cmdInsertFromWeb");
    WebTextEditorToolCommand cmdMediaGallery = tb.ToolCommands.GetNamedItem("cmdMediaGallery");
    tb.ToolCommands.RemoveAt(2);
    tb.ToolCommands.Remove(cmdInsertFromWeb);
    tb.ToolCommands.Remove(cmdMediaGallery);
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Images</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/Images/</link><pubDate>Mon, 24 Sep 2012 10:23:52 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;I am using the Minimal toolbar and want to remove the Insert from Web and Media Gallery buttons.  How can I do this server-side?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>