Project

General

Profile

« Previous | Next » 

Revision 73

Added by stefan about 19 years ago

Fixed path bugs concerning the htmlarea module transition.

View differences:

trunk/wb/admin/pages/intro.html
1
<!-- BEGIN main_block -->
2

  
3
<script type="text/javascript">
4
  _editor_url = "{WB_URL}/include/htmlarea/";
5
  _editor_lang = "en";
6
</script>
7
<script type="text/javascript" src="{WB_URL}/include/htmlarea/htmlarea.js"></script>
8
<script type="text/javascript">
9
HTMLArea.loadPlugin("FullPage");
10
HTMLArea.loadPlugin("ContextMenu");
11
HTMLArea.loadPlugin("TableOperations");
12
function initEditor() {
13
  var editor = new HTMLArea("{WYSIWYG_FIELD}");
14
  editor.registerPlugin(FullPage);
15
  editor.registerPlugin(ContextMenu);
16
  editor.registerPlugin(TableOperations);
17
  editor.generate();
18
}
19
</script>
20

  
21
<form action="intro2.php" method="post">
22

  
23
<input type="hidden" name="page_id" value="{PAGE_ID}" />
24

  
25
<textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 500px">{CONTENT}</textarea>
26

  
27
<table cellpadding="0" cellspacing="0" border="0" width="100%">
28
<tr>
29
	<td align="left">
30
		<input type="submit" value="{TEXT_SAVE}" style="width: 100px; margin-top: 5px;" />
31
	</td>
32
	<td align="right">
33
		</form>
34
		<input type="button" value="{TEXT_CANCEL}" onclick="javascript: window.location = 'index.php';" style="width: 100px; margin-top: 5px;" />
35
	</td>
36
</tr>
37
</table>
38

  
39
</form>
40
<!-- END main_block -->
41 0

  
trunk/wb/modules/htmlarea/htmlarea/popups/link.php
31 31
$admin = new admin('Pages', 'pages_modify', false);
32 32

  
33 33
// Setup the template
34
$template = new Template(WB_PATH.'/include/htmlarea/popups');
34
$template = new Template(WB_PATH.'/modules/htmlarea/htmlarea/popups');
35 35
$template->set_file('page', 'link.html');
36 36
$template->set_block('page', 'main_block', 'main');
37 37

  

Also available in: Unified diff