close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTML Editor removing in line style

Thread began 5/20/2010 5:10 pm by jamie407107 | Last modified 5/25/2010 3:52 pm by Jason Byrnes | 1293 views | 6 replies |

jamie407107

HTML Editor removing in line style

When I center text in the editor, then submit it, it is removing the center formatting. I made a generic page and pasted the code below. It is also available at:

centertest/

After you center the text, if you click the view source button, it shows:

<p style="text-align: center;">TEST</p>

After you submit, it shows:

<p style="">TEST</p>

-------------

<?php require_once("../HTMLEditor/WARichEditorPHP.php"); ?>

<body>

<p style="text-align: center;">This text is centered.</p>

<? $datastuff=$_POST['datastuff'];

echo $datastuff; ?><BR /><BR /><BR />

<form action="" method="post" name="form1">

<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("datastuff", "../HTMLEditor/", "100%", "200px", "Default", "../custom/jamie_datastuff1.js", "$datastuff");
?>

<input name="Submit" type="submit" />

</form>

</body>

</html>

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the entire PHP page so I can see the code in context?

Sign in to reply to this post

jamie407107

The entire page is included in my original post. I made a page as simple as possible for troubleshooting purposes.

Please let me know what more you need and I will get it.

Thanks,

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

the code you posted in your initial post is only the form, it does not include any of the php code.

Please compress the entire php page into a zip file so I can see all of the code on the page to look into the issue.

Sign in to reply to this post

jamie407107

That is all of the code for the test page.

<?php require_once("../HTMLEditor/WARichEditorPHP.php"); ?>

<body>

<p style="text-align: center;">This text is centered.</p>

<? $datastuff=$_POST['datastuff'];

echo $datastuff; ?><BR /><BR /><BR />

<form action="" method="post" name="form1">

<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("datastuff", "../HTMLEditor/", "100%", "200px", "Default", "../custom/jamie_datastuff1.js", "$datastuff");
?>

<input name="Submit" type="submit" />

</form>

</body>

</html>

Sign in to reply to this post

jamie407107

We figured it out. There was a PHP setting on the host's server that we had to adjust.

Sign in to reply to this post

Jason ByrnesWebAssist

Ok excellent, glad to hear it, what was the setting?

Sign in to reply to this post

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...