Forec Author mode refresh
Posted: Mon Sep 07, 2009 5:15 pm
Hi,
Still at it with these Oxygen plugins/operations, and generally being quite successful, however I have come acros the following issue.
I have a CSS that renders the content of a particular attribute when present in an element, the CSS rule is:
This renders the paragraph number, as defined in the para-number attribute, for any element that posses that attribute.
I also have an operation which rewrites the value of this attribute for some or all elements which posses it.
The problems is; the user is viewing the file in author mode with the current apara-number values displayed, the operation is invoked and it rewrites the attribute values, the attribute values displayed in author do not update. Is there a way to force the author mode to re-render the document using the new attribute values?
Still at it with these Oxygen plugins/operations, and generally being quite successful, however I have come acros the following issue.
I have a CSS that renders the content of a particular attribute when present in an element, the CSS rule is:
Code: Select all
[para-number]:before{
display: block;
content: attr(para-number);
font-weight: bold;
font-size: larger;
}
I also have an operation which rewrites the value of this attribute for some or all elements which posses it.
The problems is; the user is viewing the file in author mode with the current apara-number values displayed, the operation is invoked and it rewrites the attribute values, the attribute values displayed in author do not update. Is there a way to force the author mode to re-render the document using the new attribute values?