iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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.
How do I do this?
Thanks,
Jim
Hi Jim,Sorry for this inconvenience. I've re-upload the file.Thank your for your feedback.Regards,Bernard
Hi Jim,
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).
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.
Hope this helps.
Regards,
Bernard
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 = "≥"; aa.Name = "Greater Than or Equal"; aa.DisplayMode = WebTextEditorToolBarCommandDisplayMode.Text; WebTextEditorToolItem bb = new WebTextEditorToolItem(); bb.Text = "≤"; 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); } }
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.
Regards,Bernard
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?
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebTextEditor1.Content = "Hello World"; } }
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?
Bernard.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname