View Full Version : Why does Irite re-format content
g292818
04-29-2009, 03:49 PM
Hi, I notice that when Irite is used within a textarea to update some existing content in that area, it messes up url links and tables that were there - even when you never touch them directly.
Say for example, the following:
--This is some text, and some more text and more.
Click here--
Assuming "Click here" is an active link, if I edit some/part of the line above and click save, the href link itself (even though source is NOT in view) will become messed up and the link no longer works.
If you do go back and painstakingly repair the href links it does work though - but this is VERY annoying and time consuming - especially when there are several different links in that textarea... there must be a way to ensure that this does not happen.
Please advice.
regards, Daniel
neil349752
04-30-2009, 05:35 AM
Not sure if this is related to this question but I also have an issue. Got everything working fine on asp including the image upload option. So, I have iRite in an update page.. paste in text.. format, upload and resize a photo.. perfect.
Update and everything is as it should be on the live page.. perfect.
Then I go back to change something in the update page and the text has lost it's formatting and the image has gone. I tried using the save button in the iRite editor but no change.. is that normal or is something wrong?
As it stands that will not suffice as I am trying to setup a simple CMS for a user and it means that to chamge one word they would have to reformat the text and re-insert the image every time..
Neil
Ray Borduin
04-30-2009, 08:55 AM
Something is wrong, it should work. What is the default value of the iRite field on the Update page?
Ray Borduin
04-30-2009, 09:01 AM
I can't seem to reproduce the link problem you are describing. Maybe I'm not following the steps on reproducing it properly. Do you have a url or maybe more details that might help me reproduce the problem?
neil349752
04-30-2009, 09:17 AM
Something is wrong, it should work. What is the default value of the iRite field on the Update page?
Sorry if interfering in this thread, seem to be slightly different problems, move this to a separate thread if it is appropriate.
Not sure how to see the default value, do you mean the source code on a blank field?
If this helps paste below of a working update source before sending it live, with formatted text and a resized image that all works on the live page. Followed by the same update iRite source when revisited a minute later. In one with more text some of the text went funny too but not in this example but you can see how the image bits changed.
<html>
<head>
<title></title>
</head>
<body>
<div>
<div>
<div> </div>
</div>
<div><span> Other than that, get stuck in and enjoy yourselves. </span></div>
<div><span> </span></div>
<div><span> Pukka.</span></div>
<div> </div>
<div> <input type="image" height="278" width="200" src="/userfiles/image/9780955912818.jpg" /></div>
</div>
<div> </div>
<div> </div>
</body>
</html>
<html>
<head>
<title></title>
</head>
<body>
<div>
<div>
<div> </div>
</div>
<div><span> Other than that, get stuck in and enjoy yourselves. </span></div>
<div><span> </span></div>
<div><span> Pukka.</span></div>
<div> </div>
<div> <input src=""/userfiles/image/9780955912818.jpg"" width=""200"" height=""278"" type="text" /></div>
</div>
<div> </div>
<div> </div>
</body>
</html>
Ray Borduin
04-30-2009, 09:28 AM
What is the default value of the iRite field on the Update page?
neil349752
04-30-2009, 09:59 AM
What is the default value of the iRite field on the Update page?
Sorry Ray, not sure how to see the default value, do you mean the source code on a blank field? Or the html on the update page in the iRite field in dreamweaver?
In dreamweaver the code for iRite is:
<%
' WebAssist iRite: Rich Text Editor for Dreamweaver
Dim WARichTextEditor_1 : Set WARichTextEditor_1 = CreateRichTextEditor ("content", "../WA_iRite/", "500px", "400px", "Default", "../custom/BB1_Update_content1.js", "" & cStr(Replace((WADANeilgww_adminBB1.Fields.Item("content").Value)&"", """", """)) & "")
%>
In a new record with just a space entered the source shows:
<html dir="ltr">
<head>
<title></title>
</head>
<body>
<p> </p>
</body>
</html>
Not sure what that dir "ltr" means..
Ray Borduin
04-30-2009, 10:15 AM
Looks like the default value (open up the irite interface and look at the default value field).
it will be: <%= Replace((WADANeilgww_adminBB1.Fields.Item("content").Value)&"", """", """) %>
See where it says Replace...That replaces Quotes with "... which is the problem you are having. This is necessary when working with input type="text" fields, but not with iRite.
Update it to:
<%= WADANeilgww_adminBB1.Fields.Item("content").Value %>
neil349752
04-30-2009, 12:06 PM
Outstanding Ray.. fixed it and perfetto now!!
Thank you so much.. that was the final piece of the puzzle.. I am working on a custom CMS using DataAssist and iRite in asp and that is just about it now and I am almost ready to rock and roll.. have several websites that require this feature, only prepared to allow it for body content so far and as you will be aware the whole joomla type debate v dreamweaver designers is raging wide.. I know which side I am firmly on!
I noted a previous post I think you made about developing a webassist cms based around these progs.. any progress on this? Looks like it is ok anyway the way I am approaching it.. have yet to see how quickly I am move and apply this to other sites but should be not too arduous..
Many thanks again and appreciate your help
Neil
Ray Borduin
04-30-2009, 12:11 PM
We are coming out with a simple CMS solution soon and are considering an overhaul of iRite to focus specifically around CMS and include more tools for that purpose in iRite as well. CMS is a big topic for our customers, so it is one that we will be taking seriously and taking some serious steps to facilitate over the upcoming year.
neil349752
05-26-2009, 06:43 AM
See where it says Replace...That replaces Quotes with "... which is the problem you are having. This is necessary when working with input type="text" fields, but not with iRite.
Update it to:
<%= WADANeilgww_adminBB1.Fields.Item("content").Value %>
Just thinking about that again Ray, the field was set as text when the page was created by datassist, what are the options to make that not happen or do I have to manually change it from a text field each time?
Ray Borduin
05-26-2009, 11:17 AM
You should update the default value of the iRite field when you apply it to make sure there is no encryption or encoding. DataAssist adds one version, but many others exist so you just have to be careful that the default is set correctly... when using dataassist this does mean manually updating it.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.