Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextAngular
Message
From
31/07/2014 13:02:15
 
General information
Forum:
Javascript
Category:
Other
Title:
Miscellaneous
Thread ID:
01604974
Message ID:
01605017
Views:
47
This message has been marked as the solution to the initial question of the thread.
>>In the textAngular documentation I see under 'Requirements':
>>"textAngular-Sanitize This is a fork of Angular Sanitize v1.2.x. The standard Angular Sanitize strips out some attributes that it shouldn't in the case of textAngular."
>>
>>Don't know if it is that cause of your problem tho...
>
>Yes, hard to say. I switched to ClEditor suggested by my colleague (as it's from the theme we bought although I found that the editor was open source).
>
>I was able to implement it but now I am facing a different problem not sure if it's editor related (will test) or not.
>
>In that form I have controls whose visibility depends on other controls. I found a similar form (although multi-panel) where ng-show is used and seems to be working fine (I could not find anything else).
>
>But in this form it doesn't work.
>
>Here is my code:
>
>
>   <div class="form-group">
>            <div class="control-label col-lg-3">
>
>                <label title="LiabText">Liability Form HTML:</label>
>            </div>
>            <div class="controls">
>                <div class="col-lg-9">
>                    <textarea cleditor name="liabHTML" id="liabHtml" ng-model="currentLiabilityForm.liabHTML"></textarea>
>                </div>
>            </div>
>        </div>
>        <div class="clearfix"></div>
>        <br />
>        <div class="form-group">
>            <div class="col-md-11 col-md-offset-1">
>                <div class="checkbox">
>                    <label>
>                        <input ng-model="currentLiabilityForm.ExpStatic" type="checkbox"> Expires on a specific date
>                    </label>
>                </div>
>            </div>
>        </div>
>        <div class="form-group" ng-show="currentliabilityform.ExpStatic">
>            <label class="control-label col-md-3 col-lg-3">Days from Acceptance to Expiration:</label>
>            <div class="col-md-4 col-lg-4">
>                <input type="number" class="form-control" sm-number-format sm-number
>                       min="0" max="1000" name="expDays" ng-model="currentLiabilityForm.expDays" />
>                <div class="field-validation-error">
>                    <span ng-show="(form.editLiabilityFormGeneralForm.expDays.$error.min || form.editLiabilityFormGeneralForm.expDays.$error.max) && form.editLiabilityFormGeneralForm.expDays.$dirty">
>                        Days from Acceptance to Expiration must be a number between 0 and 1000.
>                    </span>
>                </div>
>            </div>
>
>As you can see, last control should only show when ExpStatic is false (0) (I reversed the condition for now just to check if it works or not).
>
>Clicking on ExpStatic checkbox has no effect on the last control. In another form the similar construct seems to work, so I am wondering what I may be missing here.
>
>Thanks.

currentLiabilityForm / currentliabilityform. Case sensitive :-}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform