You may have the need to paste large amounts of text from other sources straight within your WebMaker application pages. The best way to achieve this is by using the Paragraph Control or the Custom Control.
The Paragraph Control currently has some restrictions, especially when you copy and paste text from elsewhere. This is due to the html markup syntax, some of which is not xml-compliant. Currently, WebMaker 'wraps' the html contents of the Paragraph Control within the overall xml markup of the page, which can result in a malformed document. We have plans to improve this in the future.
To overcome this restriction, you can either type your text into the Paragraph Control editor from scratch, which should ensure you are less likely to end up with non-compliant html. If you have large amounts of text, and you want to simply copy and paste this text onto your form, then a Custom Control might be a better option. A Custom Control will accept any well-formed XHTML fragment. Therefore, you have two options; you can type your material from scratch into the Paragraph Control or you can follow the steps below to copy and paste your text into a Custom Control in html form.
Pasting text (html ) into Custom Controls
You need to capture the html markup for the text and then edit the html to remove any obvious non-xml characters/markup. In order to do this you can follow these steps:
You may need to repeat this process until you have xml-compliant html
The Paragraph Control currently has some restrictions, especially when you copy and paste text from elsewhere. This is due to the html markup syntax, some of which is not xml-compliant. Currently, WebMaker 'wraps' the html contents of the Paragraph Control within the overall xml markup of the page, which can result in a malformed document. We have plans to improve this in the future.
To overcome this restriction, you can either type your text into the Paragraph Control editor from scratch, which should ensure you are less likely to end up with non-compliant html. If you have large amounts of text, and you want to simply copy and paste this text onto your form, then a Custom Control might be a better option. A Custom Control will accept any well-formed XHTML fragment. Therefore, you have two options; you can type your material from scratch into the Paragraph Control or you can follow the steps below to copy and paste your text into a Custom Control in html form.
Pasting text (html ) into Custom Controls
You need to capture the html markup for the text and then edit the html to remove any obvious non-xml characters/markup. In order to do this you can follow these steps:
- Create a Paragraph Control and a Custom Control in the Page Structure tab.
[/*][*] Copy and Paste your text into the Paragraph Control in the Field Details tab.
[/*][*] Click on the "html" button on the Paragraph Control Toolbar and copy and paste the html for the text into a suitable editor such as Notepad.
[/*][*] Clear out the text in the Paragraph Control to stop WebMaker complaining about malformed XML. You can also remove the Paragraph Control if it's no longer required.
[/*][*] You can now edit the html that was pasted into the editor in step 3 to remove non-xml characters. Example characters may include &,  , etc.
[/*][*] Finally paste the modified html directly into the custom control.[/*]
You may need to repeat this process until you have xml-compliant html
RE: Can I copy and paste HTML onto my WebMaker pages?
RE: Can I copy and paste HTML onto my WebMaker pages?
Yes, this can be frustrating.
You can try "& # 1 6 0 ;" for your "& n b s p ;"
"& a m p ;" should be okay.
If you need wider character support then you can try something like the following:
<p> <xsl:text disable-output-escaping="yes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> I need a space "& a m p ; n b s p ;" and an ampersand "& a m p ;" in my text </xsl:text> </p>
I hope you can observe that I have inserted spaces between all the special characters to prevent the forum software from interpreting and replacing these codes. Therefore, if you copy and paste from this response then remove the spaces from everything within the quotes.
Kind Regards
Abdul