Hi, I have upgraded from 11.2 to the current service released and realised that all my text editor controls have aditional styling applied. Is there any way that I can disable all the styling being applied to the text editors.
I hace tried the following:
$("[data-datatype=Currency]").each(function () { var $this = $(this); var disabled = $this.attr("disabled"); $this.igCurrencyEditor({ theme: "", renderInContainer: true, valueChanged: function () { eval($this.attr("onchange")); } }); $this.removeClass(); $this.parent().removeClass(); $this.attr("disabled", disabled); });
But the you are stuck with the focus and hover styling that gets applied via script.
Thanks in advanced
Regards Christoff
Hi christoffelleroux,
Thank you for the sample.
I have been testing this further and it seems there is no way to prevent the .ui-state-focus class as the available events are not fired in time to remove the class. However the class may be overriden by adding a class with the same name:
.ui-state-focus {background: none ;border: 1px solid #F0F0F0;}
Note that this would still cause a minor "flashing" due to the borders being applied. At this point it may be more practical to delete the theme in order to not have any styling applied. Note that our controls are jQuery UI compatible and you can use jQuery ThemeRoller to build custom themes and override the default ones.
http://jqueryui.com/themeroller/
Hi Petar
I've reproduced the issue in the attached sample.
Thank you
Christoff
Hi Chrisoff,
Thank you for your reply.
Attached is a small sample with an igNumericEditor with stripped styling. Please let me know if the behavior is still being manifested as I was not able to reproduce the matter under Firefox and IE.
Hey Petar
Thanks for the response I have been struggling with this issue for a while now J
I’ve added the suggested classes to the collection to be removed.
The flicking on the classes occurs on the Numeric and Percentage igEditors, it also seems that when doing the copy and pasting of the values in the editor the operation is ignored or lost on the first try, although when coping or pasting the values a second time the editors are updated.
Thanks allot
Hi Christoff,
There are 2 other classes which can be removed and which seem to have some effect on the appearance of the editor - ui-igedit-bordercolor and ui-igedit-nullvalue. Please let me know if removing them has the desired effect as I was not able to spot any flashing when copying and pasting to/from the igEditor.