close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTML Editor adding " to classes

Thread began 8/08/2011 1:20 pm by Joe Lowery | Last modified 8/12/2011 10:10 am by Jason Byrnes | 2069 views | 13 replies |

Joe Lowery

HTML Editor adding " to classes

Whenever I assign a style to a paragraph, HTML Editor (version 3.0.2) puts in character entities for the quote marks - in addition to the quote marks already there. So, what should be:

<p class="menuHeading">


becomes:

<p class="&quot;menuHeading&quot;">



What's worse - every time I update the content, another series of character entities is added and now I have:

<p class="&quot;&quot;menuHeading&quot;&quot;">



How do I fix this?

Thanks - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

there is formating on the initial value of the HTML editor instance that is converting the double quote character (") to the html entity.

to fix the problem, edit the html editor instance, and re bind the initial value to the corresponding recordset column to remove the formatting.

Sign in to reply to this post

Joe Lowery

How do I edit the HTML Editor instance to remove the formatting? I opened up the HTML Editor instance, clicked on my preset to edit it and see that, under Formatting, Greek and Latin is set to "No encoding" and Encode HTML Entities is unchecked. I don't see anything else relevant - what am I missing?

Sign in to reply to this post

Jason ByrnesWebAssist

you need to re bind the initial value.

click the lightning bolt next to initial value and select the corresponding column from your recordset.

re binding the initial value will remove the formatting.

Sign in to reply to this post

Joe Lowery

Okay, I got it now - thanks.

Sign in to reply to this post

Alexneg66

I have the same problem with the quote marks. Unfortunately I cannot re bind the initial value clicking the lightning bolt next, because I get error, as you can see in the "lightning_clicked.png" images.

I have always had this last problem with al version of DataAssit and Dreamweaver. It happens in Detail and Update pages where there are two variable for the ID parameter. You can see the "variable_error.png". So if I modify the value and I click on OK button I get the error from Dreamweaver:
--------------------------------------------------------------------------
ParamNL is not a valid variable name, it doesn't appear in SQL
Runtime value not found for ParamNL_id variable
--------------------------------------------------------------------------

This is the source code created from DataAssist:
<?php
$ParamNL_id_WADANL_Newsletter = "-1";
if (isset($_GET['NL_id'])) {
$ParamNL_id_WADANL_Newsletter = (get_magic_quotes_gpc()) ? $_GET['NL_id'] : addslashes($_GET['NL_id']);
}
mysql_select_db($database_connDB, $connDB);
$query_WADANL_Newsletter = sprintf("SELECT NL_id, NL_tit, NL_body, NL_beneficiari, NL_datapartenza FROM NL_Newsletter WHERE NL_id = %s", GetSQLValueString($ParamNL_id_WADANL_Newsletter, "int"));
$WADANL_Newsletter = mysql_query($query_WADANL_Newsletter, $connDB) or die(mysql_error());
$row_WADANL_Newsletter = mysql_fetch_assoc($WADANL_Newsletter);
$totalRows_WADANL_Newsletter = mysql_num_rows($WADANL_Newsletter);?>

When I can, I have to modify manually the code.
I realize these are two different problems but their connection is very important.

Now, what can I do?

Thanks in advance

Attached Files
screenshoot_alexneg66.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the screen shots you attached do not include an error when click the lightning bolt for the HTML Editor initial value. please attach the appropriate screen shot.



for the data assist issue, see this post for an explanation of the cause:
showpost.php?p=73308&postcount=3

Sign in to reply to this post

Alexneg66

Hi Jason,
I have attached two screenshoots I have made on HTML Editor panel.
I don't know what can I do and I don't know if the problem is DataAssist or CSS FormBuilder or HTML Editor or Dreamweaver 5.5

Thanks again

Alex

Attached Files
HTMLEditor_Screenshoot.zip
Sign in to reply to this post

Alexneg66

... for the problem between DataAssit and Dreamweaver I have followed the advice in the page linked in yor last post.
Thank you, now I can modify the parameter through the recordset panel.

Alex

Sign in to reply to this post

Jason ByrnesWebAssist

the error you are getting suggests that there is a problem connecting to the database.

open the database tab, double click the connection and click the test button to make sure the connection is working.

you can fix the quote problem with HTML manually though, by removing the str_replace() function form the initial value

change the code for the initial value from:

php:
<?php echo(str_replace('"''&quot;'$row_WADANL_Newsletter['NL_body'])); ?>




to:

php:
<?php echo($row_WADANL_Newsletter['NL_body']); ?>
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...