Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
WYSIWYG and HTML

 

 


simonwh
User

Nov 4, 2006, 2:18 PM

Post #1 of 16 (1840 views)
Shortcut
WYSIWYG and HTML Can't Post

Hello

I'm trying to enter a block of HTML into the CONTENT textfield of an article but it just appears on the resulting page as HTML code.

Is it not possible to enter HTML code if the WYSIWYG facility is active?


Damon
Staff / Moderator


Nov 4, 2006, 2:40 PM

Post #2 of 16 (1836 views)
Shortcut
Re: [simonwh] WYSIWYG and HTML [In reply to] Can't Post

Hi Simon,

To enter html code directly into the WYSIWYG editor, click the <> (View/Edit Source) button and add your code in the source popup window.

Cheers
Damon Edis
interactivetools.com


simonwh
User

Nov 4, 2006, 3:11 PM

Post #3 of 16 (1833 views)
Shortcut
Re: [Damon] WYSIWYG and HTML [In reply to] Can't Post

Thanks

If I paste the source code straight from my HTML editor into that pop-up, AM2 adds a load of '&nbsp;'

I tried one test and it added 15 x '&nbsp; in one line ??


Damon
Staff / Moderator


Nov 4, 2006, 4:07 PM

Post #4 of 16 (1827 views)
Shortcut
Re: [simonwh] WYSIWYG and HTML [In reply to] Can't Post

Hmmm,

I tried pasting in some code and it worked fine, no nonbreaking spaces.

Can you reply here or private message me some example code so I can try to re-create the issue?

Cheers
Damon Edis
interactivetools.com


simonwh
User

Nov 4, 2006, 4:37 PM

Post #5 of 16 (1826 views)
Shortcut
Re: [Damon] WYSIWYG and HTML [In reply to] Can't Post

Hi

This:


Code
		<p>This is just a test ssample for html source code:</p> 
<p></p>
<table width="200" border="1" cellspacing="2" cellpadding="0">
<tr>
<td>line 1</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>line 3</td>
</tr>
</table>
<p> end of test</p>


turns into this:


Code
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <p>This is just a test ssample for html source code:</p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<p></p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<table border="1" cellpadding="0" cellspacing="2" width="200">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<tbody><tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<td>line 1</td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<td></td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<td>line 3</td>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</tr>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;</tbody></table>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<p> end of test</p>


??

I create the html using Adobe Golive CS2 on an Apple Mac (OSX 10.4) then past into AM2 via Firefox


(This post was edited by simonwh on Nov 4, 2006, 4:39 PM)


elderban
User

Nov 4, 2006, 5:11 PM

Post #6 of 16 (1823 views)
Shortcut
Re: [Damon] WYSIWYG and HTML [In reply to] Can't Post

Try pasting it into something like Notepad, then into the WYSIWYG editor and see if the nbsp's show up. If they don't then when you copy paste directly from your HTML editor it's capturing some code from it.

I find this happens when I copy/paste from Word into the WYSIWYG editor.

A feature I would like to see in the editor is something like "Paste as plain/unformatted text".

Edit: Looks as if my request has been answered in the latest version (2.02).


Quote
- WYSIWYG Editor: added "Paste From Word" button to default WYSIWYG toolbar


Dunno if that strips the formatting, though.

Bryan Gilchrist

(This post was edited by elderban on Nov 4, 2006, 5:15 PM)


ChetW
Staff


Nov 5, 2006, 10:06 AM

Post #7 of 16 (1801 views)
Shortcut
Re: [elderban] WYSIWYG and HTML [In reply to] Can't Post

Hi Simonwh,

Elderban's suggestion is a very good place to start, thank you helping out with this elderban!

You may want to give this suggestion a try, if you have no luck and the issue persists let us know and we will be happy to help you solve this problem. :)

I look forward to hearing back from you Simonwh!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



simonwh
User

Nov 6, 2006, 3:40 PM

Post #8 of 16 (1783 views)
Shortcut
Re: [ChetW] WYSIWYG and HTML [In reply to] Can't Post

OK, I've tried the following

copied html code to textedit (mac version of notepad) then copied it from there to AM2

I've tried opening the code in BBedit (a dedicated html compiler) and copying it from there into AM2

Same result both times - just loads of &nbsp snippets.

I cannot try it in Internet explorer or Safari on Mac because they are not compatible with your WYSIWYG facility. And even worse I cannot create articles in IE or Safari on a Mac at all because of this incompatibility. It won't even let me enter plain text??

All I can do is disable the WYSIWYG option - That is quite a big step backwards !


snichols
User

Nov 7, 2006, 5:14 AM

Post #9 of 16 (1770 views)
Shortcut
Re: [simonwh] WYSIWYG and HTML [In reply to] Can't Post

Some time ago there was a thread about making the WYSIWYG editor Mac compatible - did anything every happen? I recently bought a MacBook but can't use AM with either Firefox or Safari.

Steve


simonwh
User

Nov 7, 2006, 5:47 AM

Post #10 of 16 (1768 views)
Shortcut
Re: [snichols] WYSIWYG and HTML [In reply to] Can't Post

It wouldn't be so bad if it was just an incompatibility issue and I had to go without using WYSIWYG but it won't even allow me to enter plain text.

If I disable the WYSIWYG facility my non-html savvy colleagues (who all use PCs) will end up posting plain text articles and everything will start to look grey and boring.


ChetW
Staff


Nov 7, 2006, 1:57 PM

Post #11 of 16 (1753 views)
Shortcut
Re: [simonwh] WYSIWYG and HTML [In reply to] Can't Post

Hi Simon,

Thanks for the post!

We have tried this on our end with an Apple computer and have not run into the same issue, what I am thinking is if you can fill out a support request with your ftp details then we could take a closer look at the problem. Once we can see this happening on your Article Manager installation we will be able to try and troubleshoot where all these extra non-breaking spaces are coming from. :)

You can fill out a support request here:

https://www.interactivetools.com/support/email_support.cgi

Does this help Simon? I look forward to hearing back from you soon!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



ChetW
Staff


Nov 9, 2006, 12:03 PM

Post #12 of 16 (1734 views)
Shortcut
Re: [ChetW] WYSIWYG and HTML [In reply to] Can't Post

Hi everyone,

I have been looking into this issue that Simon is having and so far have been able to successfully add HTML code to the WYSIWYG editor on a mac without generating the extra non-breaking spaces. I have tried this using both TextEdit and BBedit on a mac and everything is working okay, so far this is what I have done:

Created then copied code from BBedit:
1. First I opened a new html page in BBedit and added the following code:


Code
<p>On a mac with BBedit</p> 
<p></p>
<table width="200" border="1" cellspacing="2" cellpadding="0">
<tr>
<td>line_1</td>
</tr>

<tr>
<td></td>
</tr>

<tr>
<td>line_3</td>
</tr>
</table>
<p>end of test</p>



2. Next I went inside the Article Manager admin created a new article and selected the "<>" button from the WYSIWYG editor, in the pop-up window that appeared I pasted the above code from BBedit.

3. Then I pressed 'Apply' and 'Ok' and saved the changes to the article. :)

After doing this the code generated on this test article without all the extra non-breaking spaces so I thought maybe it was caused by copy the code written into TextEdit so I did the following:

4. Copy and pasted the code from BBedit into TextEdit, then took the code from TextEdit and pasted it into the test article everything worked okay. Next I created the code fresh in TextEdit and copied this new code into the test article I still was unable to re-create the issue. :)

At the moment we have not tracked down why Simon is running into this non-breaking space issue, however once we have figured this out I will post an update to this post letting everyone know what was casing this issue. :)






Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



hedley
User

Feb 27, 2008, 7:37 AM

Post #13 of 16 (1270 views)
Shortcut
Re: [ChetW] WYSIWYG and HTML [In reply to] Can't Post

I get this pasting from Dreamweaver. I like to tab in my HTML to aid visual scanning of the code, especially tables. Looks like tabs are converted to spaces and in turn these spaces are converted to non-breaking space characters ever when pasted in code view. Very annoying.

Also when you paste content in, all neatly on separate lines, click OK then go back to edit it the line breaks are removed so the code is all bunched up making it very hard to read.

Any configs where this can be tweaked?


Jake
Staff / Moderator


Feb 28, 2008, 10:32 AM

Post #14 of 16 (1266 views)
Shortcut
Re: [hedley] WYSIWYG and HTML [In reply to] Can't Post

Hi hedley,

It's difficult for us to support changes to the WYSIWYG editor since it's a third-party product, but if you send me a private message with your email address I can send you the documentation for the WYSIWYG editor which may shed some light on how to adjust this behaviour. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



nigelparry.net
User

Jun 3, 2008, 10:13 AM

Post #15 of 16 (907 views)
Shortcut
Re: [hedley] WYSIWYG and HTML [In reply to] Can't Post

This doesn't happen if you ditch the "HTMLSource" button and use the "XHTMLSource" button instead.

For some reason that option preserves the raw HTML line breaks and tabs.

File to edit:

Code
/webrootArtmanDirectory/javascript/loadWysiwyg.js


Line to look for:

Code
wysiwyg.features=[    // buttons to display


Just under the line, replace:
"HTMLSource" with "XHTMLSource"

Nigel
_____________________

For more information about Nigel Parry and nigelparry.net
websites please see http://nigelparry.net

nigelparry.net: award-winning communications
solutions for clients with something to say


  • Website & print design

  • Internet, public relations & media consulting


  • hedley
    User

    Jun 6, 2008, 3:02 AM

    Post #16 of 16 (886 views)
    Shortcut
    Re: [nigelparry.net] WYSIWYG and HTML [In reply to] Can't Post

    Nigel is awarded "Legend" status! Smile

     
     
     


    Search for (options)
    Products
    CMS Builder
    Article Manager
    Realty Manager
    Listings Manager
    Order Now
    Services
    Priority Consulting
    Support
    Online Documentation
    Support Forums
    Support Homepage
    Company Info
    12 reasons to choose us!
    Meet the team
    Monthly newsletter
    Contact Us
    Toll Free: 1-800-752-0455
    Phone: (604) 689-3347
    Sales | Support
    Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
    #201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4