Alter Code Output

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;
Post Reply
JDC
Posts: 10
Joined: Tue Nov 24, 2009 8:32 pm

Alter Code Output

Post by JDC »

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.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Alter Code Output

Post by Aivars »

Empty "Language" field in Script -> Insert Script dialog. The same with images, empty Border field in Insert Image dialog.
Blumentals Software Programmer
JDC
Posts: 10
Joined: Tue Nov 24, 2009 8:32 pm

Re: Alter Code Output

Post by JDC »

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.
mithcd
Posts: 47
Joined: Sun Jul 01, 2012 6:30 pm

Re: Alter Code Output

Post by mithcd »

Just to make sure here. What version are you currently using for this?
When in doubt, use Brute Force Image
JDC
Posts: 10
Joined: Tue Nov 24, 2009 8:32 pm

Re: Alter Code Output

Post by JDC »

I'm using 11.3.0.132
Post Reply