mrigsby Posted June 3, 2009 Share Posted June 3, 2009 I want to be able to add script tags and object/embed tags in my Knowledgebase articles and it currently comments them out. Can anyone point me in the right direction on how to change it to allow the script, embed and object tags? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Greenix Posted July 21, 2010 Share Posted July 21, 2010 This is a good request, I've seen from many posters but yet unanswered, is there a thread discussing this? Are there issues with the security, editor? Help with this....? Many thanks, M 0 Quote Link to comment Share on other sites More sharing options...
FamilyFirstHosting Posted February 4, 2011 Share Posted February 4, 2011 You can allow script, iframe, or any other excluded tags by modifying the TinyMCE parameters. You'll need to edit the editor.php file: /admin/editor/editor.php Find (probably Line 3): tinyMCE.init({ mode : "textareas", theme : "advanced", And change to: tinyMCE.init({ extended_valid_elements : "a[class|name|href|target|title|onclick|rel],script[type|src],iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]", mode : "textareas", theme : "advanced", Note: I've included tags for iframe, script, img, and a so that you can see how to use the parameter. This will keep the editor from stripping out your tags. This is not a good option for areas of any website where the general public uses the editor. 0 Quote Link to comment Share on other sites More sharing options...
numPhoenix Posted February 7, 2011 Share Posted February 7, 2011 Will try it Thanx 0 Quote Link to comment Share on other sites More sharing options...
sven30 Posted March 28, 2011 Share Posted March 28, 2011 is it possible to make this a future admin preference addon for future releases. ie. something we can turn on or off in the admin preferences? Otherwise this will get overwritten every time we upgrade... correct? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.