iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
I have question, how can i configure custom tag's to remove on clear formating. For example: I want to add do this button cleat <div></div> tags. It's possible to do, with WebTextEditor?
Thx for answear
regards
Adam
Hi Niven
Thx for your answear i will be try to create simple code to clear div tags. I thing it;s solved my problem.
Thank you very match.
Hi Adam,
Please correct me if I'm wrong. So you want to add a new button ad WebTextEditor which will add a <div> tag into the selected words? Is it true?
You can check our WebTextEditor sample, under WebTextEditor -> Toolbar_CustomToolbar.
Hope this helps.
Niven.
no i don't need special function. i want to change how the clear formating works. I need add to clear formating function that will be clear DIV tag on my text.
So the question is: can i change function that clear formating on text editor? Because i need clear DIV tag's.
Thx
Hello,
Yes you can do that by implementing OnAfterExecCommand client side event. This event will be invoke everytime the user trigger an action on editor.
<script language="javascript"> function OnAfterExecCommand(controlId, operation) { var rte = ISGetObject(controlId); if (operation == "RemoveFormat") { var range = rte.GetRange(); } } </script>
The rte.GetRange() value will be vary with each browser. So, you might want to do your own validation inside the OnAFterExecCommand event for each browser and please don't forget to put your own validation about the DIV tag.
Regards,
Niven
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