Hello,
Using igTextEditor I found a problem. Before to initiate the plugin it is necessary to paste data into container which will be transformed to a text field. When the plugin is initiating it is storing these data in property _oldAttr. After canceling it can restore data to container. In more of cases this algorithm works fine. But when data contains html-code, browsers can transform these data. For example MSIE (I check in MSIE 8.0.6001.18702CO) do upper case for all tags. Also browsers (I check it in MSIE 8.0.6001.18702CO, FF 31.0, Google Chrome 36.0.1985.143 m) can transform single closed tag to single opened tag (for example tag BR) or to two tags (opened and closed) (for example tag P). Browsers can have other features. It means that the plugin takes incorrect data from a container. And developers, which use this plugin, cannot decide this problem. Possible solution - to paste data into text field after plugin's initiating excluding using data pasting into container. But this feature must be described in documentation and API-manual. Or it is necessary to change plugin’s behavior.
Best regards!
Hello Sergey,
Could you please describe in details what is the behavior that you cannot find a solution for ? Please try to figure out the exact steps to reproduce. I am note sure that I understood you correctly so it will be highly appreciated if more details and steps are provided. Please feel welcome to send an isolated sample as well.
I will be glad to assist you further on that.
I attached example.rar to this reply.
This example repeats issue. You may try to execute it in different browsers like me - then you will recieve different result of data transformation by browser.
But before than to write this reply I checked my supervisions again: browsers change data if to try to paste them into DOM-container like DIV.
Thanks advance!
Hello,I am still following your case. 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!
Thank you for attaching your sample.
This is completely normal behavior as you try to pass invalid html markup and the browser corrects it. This is a browser's feature rather than the igTextEditor's feature.
Please have in mind also that the igTextEditor is intended to provides support for handling text user input and not html markup input. If you use the value or text methods listed on http://help.infragistics.com/jQuery/2014.1/ui.igtexteditor you will see that any data you pass will be rendered as a string and not as an html markup.
I hope this helps. If you have any further questions, do not hesitate to contact us, I will be glad to help.