Re: wysiwyg editors
Christian Boulanger <[email protected]> Wed, 22 Sep 2004 23:24:38 +0200
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
If somebody is interested in a quick and dirty solution: here is the
happy coexistence of a nWidgets split pane and HTMLArea3
(http://www.interactivetools.com/products/htmlarea/). No integration or
anything, but it just works.
Christian
<html>
<head>
<!-- Set global variables for nW and htmlarea -->
<script type="text/javascript">
var NWconfig = new Array();
window.focus();
_editor_url = "lib/js/htmlarea";
_editor_lang = "en";
</script>
<!-- load scripts -->
<script type="text/javascript" src=
"lib/js/htmlarea/htmlarea.js"></script>
<script type="text/javascript" src=
"lib/netWindows/winScripts/netWindows.js"></script>
<script type="text/javascript">
__scripts__.require(__config__.widgetPath+"tabbed_pane_widget.js");
__sig__.connectByName(__env__, "onLoad", null, "envInit");
function envInit(){
__scripts__.endInitLoads();
HTMLArea.replaceAll();
}
</script>
</head>
<body>
<!-- Main page with nW tabbed pane widget -->
<form method="post">
<!-- Submit and Cancel buttons -->
<button type="submit"
style="width:80px">
<img src="lib/img/filesave.png"/>
Save
</button>
<button type="button"
style="width:80px"
onClick="window.close();">
<img src="lib/img/cancel.png"/>
Cancel
</button>
<div nwType="tabbed_pane" width="600" height="450">
<!-- Reference Info tab -->
<div nwType="tab" name="Welcome Message">
<div nwProperty="content">
<p>Please enter here the text you want to see
displayed
on the first page</p>
<textarea name="welcome_html" cols="80"
rows="30" style="width:100% height:100%">
${result/welcome_html}
</textarea>
</div>
</div>
<!-- reference data -->
<div nwType="tab"
name="Other options">
<div nwProperty="content">
Bla!
</div>
</div>
<!-- End Tabbed_pane -->
</div>
</form>
</body>
</html>
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org