﻿<?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 - How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</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>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Thu, 05 Jul 2012 21:20:42 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p&gt;Hi Jim,&lt;br /&gt;&lt;br /&gt;Sorry for this &lt;span lang="undefined" id="result_box" class="short_text"&gt;&lt;span class="hps"&gt;inconvenience. I've re-upload the file.&lt;br /&gt;Thank your for your feedback.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Bernard&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Thu, 05 Jul 2012 08:50:56 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>Thanks Bernard, but clicking on your attachment give me a page not found error.&lt;br /&gt;Jim&lt;br /&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Wed, 04 Jul 2012 05:04:21 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;I think this problem occurs because the value of LastCursorPosition property hasn't been set when WebTextEditor is being initialize. I made my own sample and attach it here. In my sample, I handle the cursor by using focus function. Could you check my sample again and tell me if my sample is already meet your scenario or no?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard.&lt;/p&gt;
</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Tue, 03 Jul 2012 14:40:51 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>Thanks Bernard, We're getting very close. There's just one more issue. Load some data into the editor on Page_Load, like this: (add this to your sample code above)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;    protected void Page_Load(object sender, EventArgs e)    {
      if (!Page.IsPostBack)
      {
        WebTextEditor1.Content = "Hello World";
      }
    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;Then, using Internet Explorer (I'm using IE9), view the page. you will see that the data is loaded into the WebText Editor. Then, &lt;strong&gt;without clicking in the WebTextEditor (to move the cursor to a different insertion point)&lt;/strong&gt;, click on the 'my Symbols' dropdown and insert any special character. You will get a javascript error. (Error: Unable to get value of the property 'text': object is null or undefined)&lt;br /&gt;&lt;br /&gt;This error does not happen if you move the insertion point by clicking anywhere in the 'Hello World' text, and it does not happen if you are using FireFox.&lt;br /&gt;&lt;br /&gt;Any idea on this issue? Again, thank you for all your help.&lt;br /&gt;Jim&lt;br /&gt;
</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Tue, 03 Jul 2012 06:14:51 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;I made another workaround for your scenario and it seems working for Mozilla Firefox and Google Chrome. I attach my sample here. Could you check my sample and tell me if my sample meet you scenario? &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Mon, 02 Jul 2012 09:01:36 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>Hi Bernard,&lt;br /&gt;&lt;br /&gt;Thank you very much for the code, but it only works in Internet Explorer.&amp;nbsp; If you use FireFox or Chrome, nothing gets inserted when you click on my symbols.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;Thanks,&lt;br /&gt;Jim&lt;br /&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Mon, 02 Jul 2012 06:02:08 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;You can put the function on client-side event. I've made my own sample that show you how to add an event to your item. Could you check if my sample meet your scenario? Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Fri, 29 Jun 2012 11:28:08 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>Since I really don't want to use the Custom Pane to do this, I thought that I'd try a different approach....&lt;br /&gt;&lt;br /&gt;In Code behind, when the WebTextEditor is initialized, I'm adding my own dropdown, and adding my own items to the dropdown. This displays great. But how do I add an event to my items, so that when the user selects an item from my dropdown, that code is called to insert that item into the editor?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jim&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;protected void WebTextEditor1_InitializeToolBar(object sender, ISNet.WebUI.WebTextEditor.WebTextEditorToolBarArgs e)    {
      WebTextEditorToolBar tb = e.GetToolBarByCategory(WebTextEditorToolBarCategory.Standard);
      if (tb != null)
      {
        WebTextEditorToolCommandCollection commands = tb.ToolCommands;
        WebTextEditorToolCommand cmdNew = new WebTextEditorToolCommand();
        cmdNew.Name = "cmdJim";
        cmdNew.Text = "Jims Symbols";
        cmdNew.Type = WebTextEditorToolBarCommandType.DropDownButton;
        cmdNew.DisplayMode = WebTextEditorToolBarCommandDisplayMode.Image;
        cmdNew.Image = "./images/other/smiley5.gif";  // use any image for now....
        WebTextEditorToolItem aa = new WebTextEditorToolItem();
        aa.Text = "&amp;ge;";
        aa.Name = "Greater Than or Equal";
        aa.DisplayMode = WebTextEditorToolBarCommandDisplayMode.Text;
        WebTextEditorToolItem bb = new WebTextEditorToolItem();
        bb.Text = "&amp;le;";
        bb.Name = "Less Than or Equal";
        WebTextEditorToolItem cc = new WebTextEditorToolItem();
        cc.Text = "λ";
        cc.Name = "Lambda";
        cmdNew.Items.Add(aa);
        cmdNew.Items.Add(bb);
        cmdNew.Items.Add(cc);
        commands.Add(cmdNew);
      }
    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Fri, 29 Jun 2012 09:41:30 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>I really want to be able to modify the symbols that are displayed in the 'Insert Symbols' dropdown - I like the way that it looks and functions. &lt;strong&gt;Are you sure that it's not possible to modify the items in this dropdown?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Assuming that I can't modify the items in your dropdown, I've tried to attack this by adding a custom pane like your sample: &lt;strong&gt;TaskPane_CustomPane.aspx&lt;/strong&gt;. Except instead of displaying Emoticons I'd display images of the special symbols that I need. Then, when the user clicks one of my symbol gifs, javascript would insert the HTML character codes that I need (for example, a 'Greater Than or Equal' symbol is '&amp;amp; g e ;' (I added spaces so that you could see the HTML that I actually want to insert). Most of this is working, here's what's not:&lt;br /&gt;&lt;br /&gt;In your sample, the javascript does a '&lt;strong&gt;rte.InsertImage(el.src);&lt;/strong&gt;' to insert the image into the editor. I need to insert text. I found the 'SetValue' function &lt;strong&gt;rte.SetValue("&amp;ge;");&lt;/strong&gt; but this erases any data that is in the editor, then it inserts the characters that I need it to.&lt;br /&gt;&lt;br /&gt;So, I need a javascript function to just insert text. I tried &lt;strong&gt;rte.InsertValue("&amp;ge;");&lt;/strong&gt;&amp;nbsp;&amp;nbsp; but 'InsertValue()' doesn't exist.&lt;br /&gt;&lt;br /&gt;How can I insert text into the editor using javaScript ?&lt;br /&gt;Thanks,&lt;br /&gt;Jim&lt;br /&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Thu, 28 Jun 2012 23:26:27 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p /&gt;&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;For WebTextEditor, I don't think we can edit the predefined toolbar. However, if you want to make custom ToolBar, you can make that like on our sample (ToolBar_CustomToolBar.aspx). &lt;/p&gt;
&lt;p&gt;In our sample, you can add new XML file that represent ToolBar option which you want to use. You can add your own Toolbar there and handle the function in OnToolBarClick client-side event. &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How do I modify the list of 'Symbols' ?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/How-do-I-modify-the-list-of-Symbols-/</link><pubDate>Thu, 28 Jun 2012 08:19:02 GMT</pubDate><dc:creator>jdresser@idexcorp.com</dc:creator><category>WebTextEditor</category><category>modify symbols</category><description>&lt;p&gt;I'm using the 2012 version of the WebTextEditor and I need to remove some of the pre-defined sysmbols (from the 'Insert Symbol' list), and add a few of my own symbols.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How do I do this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jim&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>