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!