[Laszlo-checkins] r10097 - in openlaszlo/trunk/lps/components: extensions/views incubator/rich-text
pbr@openlaszlo.org
pbr at openlaszlo.org
Fri Jun 27 17:43:13 PDT 2008
Author: pbr
Date: 2008-06-27 17:43:11 -0700 (Fri, 27 Jun 2008)
New Revision: 10097
Modified:
openlaszlo/trunk/lps/components/extensions/views/richinputtext.lzx
openlaszlo/trunk/lps/components/incubator/rich-text/richtexteditor.lzx
Log:
Change 20080627-Philip-8 by Philip at Philip-DC on 2008-06-27 15:37:36 EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Warn users about using richinputtext and richtexteditor in dhtml
New Features:
Bugs Fixed: LPP-6110
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
if users use richtexteditor or richinputtext in dhtml, they now see a warning displayed as well as a warning in the dev console.
richtexteditor generates errors in swf and does not run very well.
This changeset does not address it.
Tests:
See the test app in jira. It runs in swf, and displays a warning message in dhtml.
Files:
M lps/components/incubator/rich-text/richtexteditor.lzx
M lps/components/extensions/views/richinputtext.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080627-Philip-8.tar
Modified: openlaszlo/trunk/lps/components/extensions/views/richinputtext.lzx
===================================================================
--- openlaszlo/trunk/lps/components/extensions/views/richinputtext.lzx 2008-06-28 00:39:16 UTC (rev 10096)
+++ openlaszlo/trunk/lps/components/extensions/views/richinputtext.lzx 2008-06-28 00:43:11 UTC (rev 10097)
@@ -2,6 +2,19 @@
<include href="LzTextFormat.lzx" />
+<switch>
+ <when runtime="dhtml">
+ <class name="richinputtext" extends="inputtext">
+ <handler name="oninit">
+ this.setText("The dhtml runtime does not support richinputtext.");
+ if ($debug) {
+ Debug.warn("The dhtml runtime does not support richinputtext");
+ }
+ </handler>
+ </class>
+ </when>
+ <otherwise>
+
<!-- This component deals with displaying, editing, and formatting rich text.
It is a subclass of inputtext, and supports the inputtext API, plus
several methods for setting and getting the format of the text. Formats
@@ -83,7 +96,7 @@
}
if (this.multiline && this.scroll == 0 ) {
- var scrolldel = new LzDelegate(this, "__LZforceScrollAttrs");
+ var scrolldel = new LzDelegate(this.sprite, "__LZforceScrollAttrs");
_root.LzIdle.callOnIdle(scrolldel);
}
@@ -318,8 +331,12 @@
}
}
]]>
+
</script>
+ </otherwise>
+</switch>
+
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
Modified: openlaszlo/trunk/lps/components/incubator/rich-text/richtexteditor.lzx
===================================================================
--- openlaszlo/trunk/lps/components/incubator/rich-text/richtexteditor.lzx 2008-06-28 00:39:16 UTC (rev 10096)
+++ openlaszlo/trunk/lps/components/incubator/rich-text/richtexteditor.lzx 2008-06-28 00:43:11 UTC (rev 10097)
@@ -3,6 +3,20 @@
@subtopic Rich Text Editor
-->
<library>
+
+<switch>
+ <when runtime="dhtml">
+ <class name="richtexteditor">
+ <text>The dhtml runtime does not support richtexteditor</text>
+ <handler name="oninit">
+ if ($debug) {
+ Debug.warn("The dhtml runtime does not support richtexteditor");
+ }
+ </handler>
+ </class>
+ </when>
+ <otherwise>
+
<include href="../shadowbox.lzx"/>
<include href="../custombutton.lzx"/>
<include href="../baseedittext.lzx"/>
@@ -103,9 +117,13 @@
</shadowbox>
</class>
+
+ </otherwise>
+</switch>
+
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
More information about the Laszlo-checkins
mailing list