You are not logged in.
Pages: 1
Hi all,
Apologies if this has been posted before - I did a quick search and couldn't find anything.
I've been using Xinha for about 6 months now, integrated into CodeIgniter and its been great so far. Recently I've started using it to produce web development tutorials which has ultimately led me to putting in HTML code into the text. Unfortunately when it posts the data it ignores the < and > characters for the code I want to put in and as a result I end up with a mixture of what I had intended to be sample code (i.e. I want the < and > characters to be converted into < and >) and the actual code that Xinha converts. As a result I end up with rogue HTML tags in the middle of my text.
As such if this has been addressed before could you help me find a solution to my problem. If not, could I make a request for either a <CODE> button or to either make the editor convert ALL characters or to provide more accurate analysis of used characters.
Offline
Are you pasting/typing your sample code into the WYSIWYG view or into the HTML view.
When you type/paste into the WYSIWYG view then it should all work just normally, < will be < in the HTML view etc.
James Sleeman
Offline
It appears to occur when you try to edit an existing article.
To repeat the error I'm getting:
1) Create an article with an <h1> tag in the middle of the text (without going into the HTML mode) and store it in the database. Upon inspection the <h1> is correctly converted into <h1>
2) Open the same article in the editor and the HTML code (not the WYSIWYG text) is changed back into <h1>, resulting in the text being displayed in a <h1> format. If you were to update the article now, it would store the erroneous <h1> tag (as it is already HTML) and mess up the text.
I've confirmed that this is a XINHA Javascript error as the source code generated on the page indicates that the correct values are extracted from the database.
<td colspan="2">
<textarea name="body" cols="100" rows="10" id="txt" >
...
<p>The tags that are used in HTML each have a different meaning and are named appropriately. For example a heading of the highest importance is
<h1> meaning header level 1. Tags tell the web browser how to present the element and search engines like Google what that text is for. </p>
...</textarea>
</td>
Last edited by batterj2 (2009-03-09 05:39:19)
Offline
Pages: 1