close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Format overwritten

Thread began 10/31/2009 8:01 pm by bjgarner241692 | Last modified 11/06/2009 6:52 pm by Jason Byrnes | 2503 views | 11 replies |

bjgarner241692

Format overwritten

I'm finding that HTML editor is the same as iRite in that if you format text with colour and sizing then the next time you edit that text, it overwrites pretty much everything except bold and italic.

What am I doing wrong? This is pretty basic functionality and should just work.

Sign in to reply to this post

anonymous

Just so I follow... are you saying that if you were to change the text to say the color blue and then re-enter the editor, that the text is no longer blue?

Sign in to reply to this post

bjgarner241692

That is correct.
It will keep stuff like H1 tags etc. but if I set the colour and size, it will save it, but the next time I go to the update page, it will no longer be that colour and size.

Sign in to reply to this post

Eric Mittman

On your update page when you are looking at the text and it does not have the correct style applied to it can you view the source and see the formatting the same as when it is displaying correctly for you? If the css is being applied the same then there may be some other conflicting css that is causing this on the page. Do you have a link where this can be seen at all?

Sign in to reply to this post

bjgarner241692

No, I cannot give access to the pages.

Here is what happens

when I initially apply formatting and go to Source it looks fine:

<p><span style="font-size: medium;"><span style="font-family: Comic Sans MS;"><em><span style="color: rgb(255, 0, 0);"><strong>test</strong></span></em></span></span></p>

If I then Update the record, then go to Update again and click source, it looks like this:

<p><span style=""><span sans="" comic="" style=""><em><span style=""><strong>test</strong></span></em></span></span></p>

It is doing the same thing to my images and URL's. First time is fine, subsequent edits get messed up.

This has always been a problem with my iRite, in PHP MySQL or Access and ASP. I always assumed it was an Access thing so I just did not offer the feature but now I would really like to make it work to offer a quality CMS.

Is it a collation issue? A character set issue?

Sign in to reply to this post

Eric Mittman

Based on what you have here it looks as though there is just some formatting that is applied to the editor on your update page. The reason I think this is because of the way the html is when you try to update.

This:

html:
<span style="font-family: Comic Sans MS;">



Was changed and looks like this:

html:
<span sans="" comic="" style="">



Since these are not attributes that are listed in the original html but are listed as attribute values this tells me that the information is being sent to the editor correctly but that some formatting that is applied is rewriting things. Check the default value of your iRite instance to see if there is any formatting applied to it. If you cannot tell post back with the code on your page for the iRite instance, it should look something like this:

php:
<?php

// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 CreateRichTextEditor ("test""WA_iRite/""100%""200px""Default""../custom/test_test1.js""");
?>
Sign in to reply to this post

bjgarner241692

// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("textcontent", "../HTMLEditor/", "800px", "500px", "Default", "../custom/content_Insert_textcontent1.js", "");
?>

This occurs in every instance I have ever used either of these versions.

ASP, PHP
css stylesheet from DataAssist
custom css stylesheet
both stylesheets

Sign in to reply to this post

bjgarner241692

Sorry first one was from Insert page.
This one is from the update page.

// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("textcontent", "../HTMLEditor/", "800px", "400px", "Default", "../custom/content_Update_textcontent1.js", "".(str_replace('"', '&quot;', $row_WADAcontent['textcontent'])) ."");
?>

I'm guessing that this bit is the problem:
".(str_replace('"', '&quot;',

but what is the fix, and why does it do this?

Sign in to reply to this post

bjgarner241692

I changed this:

".(str_replace('"', '&quot;',

to this:

".(str_replace('"', '"',

because I was struggling with exactly what to delete. It works fine but I would still like to know why this happens.

Sign in to reply to this post

Jason ByrnesWebAssist

By default, DataAssist uses the replace function on all fields to replace quotes with the HTML Entity on the update page.

When you apply HTMLEditor to an update page, you will need to rebind the initial value and remove the formatting.


In the HTML Editor Instance, click the Lightning bolt next to initial Value. Select the corresponding Recordset column and set formatting to none. This will remove the replace function without having to manually edit the code.


This was documented for iRite, but has not been updated for HTML Editor.

In the Archived documentation section of the HTML Editor Support page, see the "Adding iRite to your Update page" tutorial.


I will put a suggestion to the documentation team to update that document.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...