0

Currently I am working on Magento 2

So my Question is

Why wysiwyg editor appends // in script tag? While saving CMS page or CMS block

// are appended after script tag starts and before script tag close

it is continuously appending // while save page or block

  • Is there any reason of it?
  • If want to overcome that than how to do that?

EXAMPLE

<script type="text/javascript" xml="space">
// <![CDATA[
// 
// 
// 
   require(['jquery'],function($){
      jQuery(document).ready(function() {
        alert("test")       
      });
   });          
// 
// 
// 
// ]]></script>
2
  • write here some example.
    – Sohel Rana
    Commented Jul 13, 2017 at 7:54
  • @SohelRana i just added example in my question Commented Jul 13, 2017 at 7:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.