source: branches/unified_backend/examples/full_example-menu.html @ 594

Last change on this file since 594 was 172, checked in by yermol, 15 years ago

htmlarea.js

. added workaround fix for NASTY FIREFOX BUG resulting in the infamous

uneditable area problem (exception on designMode="on" issue -
refer to bug:


https://bugzilla.mozilla.org/show_bug.cgi?id=207842


and this thread:


http://xinha.gogo.co.nz/punbb/viewtopic.php?id=229


. trailing <BR>'s are no longer stripped out of the document. This

was wreaking havoc on EnterParagraphs?. It's not clear whether or not
this is going to have unanticipated side-effects.

plugins/EnterParagraphs/enter-paragraphs.js

NOT FULLY FUNCTIONAL YET - DOESN'T HANDLE ALL CASES CORRECTLY,
but it's much better than it was I think.

. largely reworked.
. changed obfuscated variables names to make it more readable.
. expanded out nested (x ? y : z) constructs to make it more readable.
. added alot of comments.
. fixed a serious bug in findEachNodeUnder() that was not correctly

handling beginning and end node conditions.

. fixed design flaw that selected a non-existent insertion point for

placing the cursor.

. fixed several exceptions.
. now correctly handles lists by passing the back back to the Gecko

engine if we are in a list with the exception of being at the
first position in the first element in which case we insert
a paragraph before the list and move the cursor back to the first
item on the list.

  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 3.2 KB
Line 
1<html>
2<head>
3
4  <!--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
5    --  Xinha example menu.  This file is used by full_example.html within a
6    --  frame to provide a menu for generating example editors using
7    --  full_example-body.html, and full_example.js.
8    --
9    --  $HeadURL$
10    --  $LastChangedDate$
11    --  $LastChangedRevision$
12    --  $LastChangedBy$
13    --------------------------------------------------------------------------->
14
15  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
16  <title>Example of Xinha</title>
17  <link rel="stylesheet" href="full_example.css" />
18  <style type="text/css">
19    label { display:block; }
20  </style>
21</head>
22
23<body>
24  <h1>Xinha Examples</h1>
25
26  <br>
27
28  <a target="_top" href="../index.html">Back to Index</a>
29
30  <p>
31    Select from the options below and click the Show Example button to show working examples
32    on the right.
33  </p>
34
35  <form action="full_example-body.php" target="body">
36    <fieldset>
37      <legend>Plugins</legend>
38      <label>
39        <input type="checkbox" name="plugins" value="EnterParagraphs"  /> EnterParagraphs
40      </label>
41      <label>
42        <input type="checkbox" name="plugins" value="CSS"  /> CSS
43      </label>
44      <label>
45        <input type="checkbox" name="plugins" value="DynamicCSS"  /> DynamicCSS
46      </label>
47      <label>
48        <input type="checkbox" name="plugins" value="FullPage"  /> FullPage
49      </label>
50      <label>
51        <input type="checkbox" name="plugins" value="FullScreen" /> FullScreen
52      </label>
53      <label>
54        <input type="checkbox" name="plugins" value="CharacterMap" /> CharacterMap
55      </label>
56      <label>
57        <input type="checkbox" name="plugins" value="ContextMenu" checked /> ContextMenu
58      </label>
59      <label>
60        <input type="checkbox" name="plugins" value="ListType" /> ListType
61      </label>
62
63      <label>
64        <input type="checkbox" name="plugins" value="Stylist" /> Stylist
65      </label>
66
67      <label>
68        <input type="checkbox" name="plugins" value="TableOperations" /> TableOperations
69      </label>
70
71      <label>
72        <input type="checkbox" name="plugins" value="InsertAnchor" /> InsertAnchor
73      </label>
74    </fieldset>
75
76    <fieldset>
77      <legend>PHP Plugins</legend>
78      <p>
79        These plugins require PHP in order to run.  Some may have versions in other languages.
80      </p>
81      <label>
82        <input type="checkbox" name="plugins" value="SuperClean"  />  SuperClean <small>(PHP)</small>
83      </label>
84      <label>
85        <input type="checkbox" name="plugins" value="SpellChecker" /> SpellChecker <small>(PHP)</small>
86      </label>
87      <label>
88        <input type="checkbox" name="plugins" value="HtmlTidy"  />    HtmlTidy <small>(PHP)</small>
89      </label>
90      <label>
91        <input type="checkbox" name="plugins" value="Linker"  />       Linker <small>(PHP)</small>
92      </label>
93      <label>
94        <input type="checkbox" name="plugins" value="ImageManager"  />        ImageManager <small>(PHP)</small>
95      </label>
96    </fieldset>
97
98    <label>Number of Editors: <input type="text" name="num" value="1" /></label>
99
100    <input type="submit" value="Show Example" />
101  </form>
102
103</body>
104</html>
Note: See TracBrowser for help on using the repository browser.