Hi,
Is there any way to add event on the html editor ?
When anything is typed or copied or pasted in the editor, i want to trigger a change event.
Can you please help me with this ?
Thanks.
HI
I need help to know if i can use onfocus and onblur event from iPad UIWebView which opens our aspx page. i used downbelow code to fire onfocus event:
$(function () {
var height = $('html').hasClass('touch') ? 500 : 350;
// initialize igHtmlEditor
var htmlEditor = $("#htmlEditor").igHtmlEditor({
width:"99%",
height: height,
inputName:"htmlEditor"
});
var workspace = $('#htmlEditor_editor');
$(workspace[0].contentWindow.document).on('focus', function () {
alert('key up');
this code works fine from website side but not executing from iPad UIWebView
please help
Thanks
Manish Kumar
Hello,
I am still following this. Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
Hello Vaishnavi,Thank you for contacting Infragistics Developer support! To fire the event on copy, cut or paste you can use the the html editors events for that => help.infragistics.com/.../ui.igHtmlEditor. To fire the event when anything is typed you can attach the event to the current workspace. (reffer to the following post).
$(function() { var $htmlEditor = $("#htmlEditor"); $htmlEditor.igHtmlEditor({ width: '100%', cut: function() { triggerChangeEvent(); }, copy: function () { triggerChangeEvent(); }, paste: function() { triggerChangeEvent(); }, }); var workspace = $($htmlEditor.selector + '_editor'); $(workspace[0].contentWindow.document).on('keyup', function() { triggerChangeEvent(); }); function triggerChangeEvent() { $htmlEditor.trigger('change'); } $htmlEditor.on('change', function() { alert('Change event is triggered'); }); });
I am attaching sample if you have any additional questions please let me know.