nopCommerce Text Editor

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
See   Areas\Admin\Views\Shared\EditorTemplates\RichEditor.cshtml
3 years ago
Thanks!

I wonder if somebody can point me in the right direction....
Whenever I try to add an "onclick" to a link, it's stripping it out.
<a href="#" onclick="openBootSideMenu()">my link</a>



So, I tried adding it here:
  
if(allowJavaScript)
    {
        extended_valid_elements.Add("script[onclick|charset|defer|language|src|type]");
        valid_children.Add("+body[script]");
    }


But even after restarting the application, the onclick is removed from my code....
What's the trick?
3 years ago
Saw this post with an suggestion at the end but have not tried it
https://www.nopcommerce.com/en/boards/topic/31706/stop-html-editor-in-nop-commers-stripping-out-javascript-and-html-tinymce
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.