Is it possible to alter the code that is generated from a dialog box In WeBuilder? For example, if I create a new HTML5 document, then click the Script > Insert Script menu, it outputs with the language="JavaScript" attribute. The language attribute is obsolete in this case and comes up as a warning upon validation. Is there a way that I can edit the code that is generated from the "Insert Script" dialog to remove that?
I would also like to do the same with the border="0" attribute that is generated from the "Insert Image" dialog. That attribute is also obsolete since borders should be handled with CSS.
Alter Code Output
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Re: Alter Code Output
Empty "Language" field in Script -> Insert Script dialog. The same with images, empty Border field in Insert Image dialog.
Blumentals Software Programmer
Re: Alter Code Output
Removing the border value from the image dialog seems to work pretty well and remember the setting.
However, the Insert Script dialog is a bit buggy. If I remove the value from the language section, then browse to select the script to insert, the language section becomes once again populated with "JavaScript". If I delete it a 2nd time it works and remembers the setting for the next time - but if I go to browse for a script to insert it comes backs as filled in again.
I would image a function is running to auto-populate the language option when a script fie is selected. That should probably be re-thought in future versions.
However, the Insert Script dialog is a bit buggy. If I remove the value from the language section, then browse to select the script to insert, the language section becomes once again populated with "JavaScript". If I delete it a 2nd time it works and remembers the setting for the next time - but if I go to browse for a script to insert it comes backs as filled in again.
I would image a function is running to auto-populate the language option when a script fie is selected. That should probably be re-thought in future versions.
Re: Alter Code Output
Just to make sure here. What version are you currently using for this?
When in doubt, use Brute Force 
