A directory of browser-based WYSIWYG editors


Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Add page break

The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.



Aug 25, 2002, 8:26 AM

Post #1 of 2 (3949 views)
Add page break Can't Post

Dave, I have a question, been messing with it and thought i would just save myself some time,

how can i add <!--PAGE--> to

<a href="javascript:editor_insertHTML('box2','WANT IT HERE');">Insert Page Break</a>

any ideas?

Staff / Moderator

Aug 25, 2002, 10:18 AM

Post #2 of 2 (3947 views)
Re: [WebGuys] Add page break [In reply to] Can't Post

I'd think it should be as simple as:

<a href="javascript:editor_insertHTML('box2','<!-- PAGE -->');">Insert Page Break</a>

If you find have the comment tag as an argument value breaks the tag in some browsers you could try backslashing the < and > or encoding them as &lt; and &gt; but it seems to work in IE 6.

The only issue with that is you won't see it in the wysiwyg editor unless you're in plaintext mode. I believe Dlo's pagebreak script also works with html encoded comment tags (looks the same in the browser but visible as content and not a tag) so you might also try this:

<a href="javascript:editor_insertHTML('box2','&amp;lt;!-- PAGE --&amp;gt;');">Insert Page Break</a>

Be sure to remove any line breaks the forum might add.

Dave Edis - Senior Developer


Search for (options)