Okay
  Public Ticket #2916069
Saving problem
Closed

Comments

  • sayvin started the conversation

    Many times when I try to save something, it does not work. It either breaks the code or does not save it. After several attempts in different browsers it finally does.


    Example: I'm trying to save this code

    <div class="mcw-wrap_250" id="maoWrap">
    <div id="mcwWidget"></div>
    <script>
    var maoCalc={};maoCalc.settings={"theme":"theme3","view":"vertical2","responsive":"mcw-wrap_responsive","font":"Helvetica Neue, Helvetica, Arial, sans-serif","border":false,"boxShadow":true,"backgroundColor":"#f9f9f9","fieldColor":"#fff","textColor":"#2c3239","borderColor":"#dde2e5","currency":"$","currencySide":"left","delimiters":",.","popup":true,"popupView":"barPopup","style":true,"widgetTotalInterest":false,"widgetTotalPrincipal":false,"monthlyPayment":"Monthly Payment","totalPrincipalPaid":"Total Principal","totalInterestPaid":"Total Interest","totalPayments":"Total Payments","years":"años","title":{"enabled":true,"color":"#334356","label":"Calcula tu hipoteca"},"homePrice":{"label":"Valor de la propiedad","value":"1,500,000"},"downPayment":{"enabled":true,"label":"Anticipo","value":"52,000"},"interestRate":{"label":"Tasa de interés","value":"4.05"},"mortgageTerm":{"label":"Duración","value":"30"},"pmi":{"enabled":false,"label":"PMI","value":false},"taxes":{"enabled":false,"label":"Impuestos","value":false},"insurance":{"enabled":false,"label":"Seguro","value":false},"hoa":{"enabled":false,"label":"HOA","value":false},"extra":{"enabled":true,"labelAdd":"Agregar pagos adicionales","labelRemove":"Eliminar pagos adicionales","labelToMonthy":"To monthly","labelYearly":"Extra yearly"},"startDate":{"enabled":true,"label":"Fecha de inicio"},"monthsArr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"button":{"color":"#ffffff","bg":"#13df8c","label":"Calcular"},"amortizationSchedule":"Amortization Schedule","popupLabels":{"monthlyPrincipalInterest":"Monthly Principal & Interest","monthlyExtraPayment":"Monthly Extra Payment","monthlyPayment":"MONTHLY PAYMENT","downPayment":"Down payment","extraPayments":"Extra payments","totalPrincipalPaid":"Total principal paid","totalInterestPaid":"Total interest paid","totalOfAllPayments":"TOTAL OF ALL PAYMENTS","amortizationSchedule":"Amortization Schedule","tablePaymentDate":"Payment date","tablePayment":"Payment","tablePrincipal":"Principal","tableInterest":"Interest","tableTotalInterest":"Total Interest","tableBalance":"Balance","pmi":"PMI","taxes":"Taxes","insurance":"Insurance","shortInsurance":"Ins","hoa":"HOA","chartBalance":"Balance","chartPrincipal":"Principal","chartInterest":"Interest"},"useTitleAsLink":false,"titleLinkUrl":"","useFooterLink":false,"footerLinkAnchor":"","footerLinkUrl":""};
    (function(){function loadScript(src){var s,t;s=document.createElement("script");s.src=src;t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);}function decode(str){return!window.btoa?'not_found':window.btoa(unescape(encodeURIComponent(str)));}var uri='https://mortgage-advice-online.org/widget/'+decode(window.location)+'.js';loadScript(uri);})();
    </script>
    </div>

    And I will send you an attachment of what it saves instead. It happens all the time, even with photos.



  •  252
    The replied

    Due to security issue you cannot insert script into editor, you can add your script in Admin -> Appearance -> Custom JS