source: trunk/examples/remove-font-tags.html @ 1

Last change on this file since 1 was 1, checked in by xinha, 15 years ago

Bootstrap

File size: 1.2 KB
Line 
1<html>
2  <head>
3    <title>The "htmlRemoveTags" feature</title>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <script type="text/javascript">
6      _editor_url = "../";
7      _editor_lang = "en";
8    </script>
9
10    <!-- load the main HTMLArea file -->
11    <script type="text/javascript" src="../htmlarea.js"></script>
12
13    <script type="text/javascript">
14      HTMLArea.loadPlugin("ContextMenu");
15      HTMLArea.loadPlugin("TableOperations");
16
17      function initDocument() {
18        var editor = new HTMLArea("editor");
19        // the following line ensures that FONT tags won't be reported by HTMLArea
20        editor.config.htmlRemoveTags = /^(font)$/i;
21        editor.registerPlugin(ContextMenu);
22        editor.registerPlugin(TableOperations);
23        editor.generate();
24      }
25    </script>
26
27  </head>
28
29  <body onload="initDocument()">
30    <h1>Remove FONT tags</h1>
31
32
33    <textarea id="editor" style="height: 30em; width: 100%;"></textarea>
34
35    <hr />
36    <address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
37<!-- Created: Wed Oct  1 19:55:37 EEST 2003 -->
38<!-- hhmts start --> Last modified: Wed Apr 28 15:09:09 EEST 2004 <!-- hhmts end -->
39<!-- doc-lang: English -->
40  </body>
41</html>
Note: See TracBrowser for help on using the repository browser.