Hi Admin,
We are kinda new with using telerik. We are using a rad editor that overwrites the html type of field in moss. The requirement in our editor is that, on click of a custom toolbar button, it would insert/paste a piece of html code. But before that, there should be some sort of checking on where the current selection is. Meaning, the piece of html code to be inserted should only be pasted at specific types of elements (determined by their classes). I'm a having a hard time trying to navigate the dom and controling the position where i want to paste it. I want it to be pasted not just on the selected element, but maybe in its child nodes or sibling nodes.
Could you provide an example or references on what methods to combine or use in able to achieve this?
Thanks for your help!
ryan
We are kinda new with using telerik. We are using a rad editor that overwrites the html type of field in moss. The requirement in our editor is that, on click of a custom toolbar button, it would insert/paste a piece of html code. But before that, there should be some sort of checking on where the current selection is. Meaning, the piece of html code to be inserted should only be pasted at specific types of elements (determined by their classes). I'm a having a hard time trying to navigate the dom and controling the position where i want to paste it. I want it to be pasted not just on the selected element, but maybe in its child nodes or sibling nodes.
Could you provide an example or references on what methods to combine or use in able to achieve this?
Thanks for your help!
ryan