PDA

View Full Version : Getting WYSIWYG to work after pasting HTML?


kholtman
05-16-2008, 11:14 AM
I'm transferring a bunch of content from an older website, where I used a mix of Joomla, hand-crafted HTML, and some DreamWeaver output.

I understand, in general terms, that browsers tend to be more forgiving than they should be about syntax, and that some of my HTML might not be 100% correct.

I've figured out that in order to keep vbAdv from mucking up some pages, I need to unclick the "Automatically Parse HTML" box when I paste in pre-generated content. For my more complex articles (nested tables, tons of formatting, etc), that's ok. If I need to edit it, I just hit "edit", uncheck that box, and repaste my content from wither DreamWeaver or Notepad.

However, I'm noticed that for some simpler pages, that only contain text, italics and a few images, after I paste my HTML with that "Auto Parse" not checked, they render "correctly", but I cannot then use the WYSIWYG editor to make minor modifications to the content (fix a typo, add whitespace).

Am I doing something wrong? Or am I just screwed if my original HTML isn't 100% correct, am I always going to have to "fix it elsewhere" (DreamWeaver, Notepad), and re-paste the raw HTML back into the article?

Oh.... related question.... is there a way to make that box (AutoParse) not be checked by default? I think I have that set in my categories and such, but it always seems to be checked anyway.


Thanks for your help.

Brian
05-16-2008, 12:38 PM
What exactly is the problem when you try to use the WYSIWYG to edit the code again?

As for changing the default value, you could look in your forum/admincp/vba_dyna_admin_permissions.php for this line:
$modopts['allow_html'] = 1;

And change the 1 there to a 0.

Our Sponsors
 

kholtman
05-16-2008, 01:14 PM
Ok, here's what I'm trying to do.

I hit "submit article", and the submission form comes up.

I leave everything in the default mode (so, "AutoParse" is checked).

I paste in some HTML. I have attached a .txt file with the HTML I am trying to paste. It should show you what I want the result to look like.

After I hit "submit", it looks great when posted.

If I then hit "Edit", it comes back with pure HTML, just like I pasted in. I'm trying to figure out if there's a way to use the WSYIWYG editor instead at this point. Or, is it just true that "once HTML, always HTML"?

kholtman
05-17-2008, 08:02 PM
Bump. Thanks.

Our Sponsors
 

kholtman
05-19-2008, 01:19 PM
Bump again. Thanks.

Brian
05-19-2008, 02:22 PM
I've tried testing things locally, but did not have any problems with that code. I'm not entirely sure why you might be having an issue with it, but if you would like to submit a support ticket via the Members' Area here I'll be glad to take a look at things for you.