ah... I did think about that possibility.
Anyone think of any other way to achieve what I'm wanting then?...
User Profile
Collapse
-
Setting offsetParent not working
I'm trying to set the offsetParent property of an object to a reference to document rather than the relatively positioned container that it's in.
The reason for this is that the object is a WYSIWYG editor that is regularly statically positioned but has a full screen mode where it becomes absolutley positioned. It normally sits in a relatively positioned container so when I come to fullscreen it it grows to the 0,0 point of the container... -
-
They're quite long... too long that it's not letting me post it... let me think of another way to put it upLeave a comment:
-
To simplify my code... see below. OnInitialized and OnChanged events fire only on the first initialization and viewing of Editor1. They never fire for Editor2 or for subsequent changes on Editor1 after having gone to wizardstep2.
...Code:<script type="text/javascript" language="javascript"> function CuteEditor_OnChange(editor) { alert("OnChange") } functionLeave a comment:
-
I'm having the same problem. Here's some code... the OnChanged event fires only when viewing Editor1 for the first time only... doesn't fire for Editor2 at all...
[HTML]<%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Test. aspx.vb" Inherits="Test" %>
<%@ Register Assembly="CuteE ditor" Namespace="Cute Editor" TagPrefix="CE" %>...Leave a comment:
-
solution was that in order to render the html that the wysiwyg editor was generating it had to do so in a document object of it's own... just worked out the api to the editor and found the document within it and the scrollwidth of that.Leave a comment:
-
CMS Best Practices - XML/XSL
Hi guys,
I'm developing a small content management system that's going to involve users generating HTML content to:
1) Be sent as email content
2) Be published to a new web page
Once these have been sent/published there will be no further editing of that content.
I'm using asp .net 2.0 and SQL server 2000.
What are your thoughts as to:
1) Store xhtml in database... -
maybe a better way to put it is this.... for example if a user entered the following into a textbox how would you determine the dimensions of the string when rendered as html?
[HTML]<p>
<table cellspacing="2" cellpadding="2" width="500" border="0">
<tbody>
<tr>
<td style="width: 330px"><img height="407"...Leave a comment:
-
Determine dimensions of rendered xhtml using javascript?
I'm using a WYSIWYG HTML editor that supports vertical and horizontal scrolling. I want to limit the area that users can edit. My editor doesn't support this so I need to come up with some way to determine the rendered dimensions of the XHTML.
I figure the easiet way to do this will be to extract the XHTML when it's updated using javascript and check if the rendered size is larger than I have specified. If it is I can use undo method... -
Actually this topic is probably more relevant to the javascript section. If an admin could please delete I will repost in Javascript section.Leave a comment:
-
How to find the dimensions of HTML content?
I'm using a WYSIWYG HTML editor that supports vertical and horizontal scrolling. I want to limit the area that users can edit. My editor doesn't support this so I need to come up with some way to determine the rendered dimensions of the XHTML.
I figure the easiet way to do this will be to extract the XHTML when it's updated using javascript and check if the rendered size is larger than I have specified. If it is I can trigger the undo...
No activity results to display
Show More
Leave a comment: