Hi,
I've made a couple modifications to RVEditDemo:
1. Added a Text Style with ModifyProtect & DeleteProtect = true and colour = MoneyGreen
2. Added a Paragraph Style with Read Only = true and BackgroundColour = MoneyGreen
3. Added opening HTML files using RvHtmlViewImporter
But it doesn't work as I expect:
1. I set some text to use the style, and a paragraph to use its style. At this point the Protection/Read Only works for both ok.
2. Save the file as HTML.
3. Reopen the HTML file.
The text and paragraph both have the colours from the styles, but they are not protected.
When clicking on the text, The comboboxes at the top do not change to the styles, they go empty.
Is this a bug, or is there a function/setting to load/compare the RV Styles with the CSS?
Regards, Jim.
Read Only style not Read Only after reopening
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Protection property are stored only in RVF. If you save and reopen HTML or RTF, they will be lost.
When choosing an existing style for using for given formatting loaded from HTML, the component ignores Protection property. If two text styles have identical visual attributes, the style with a lesser index will be used.
When choosing an existing style for using for given formatting loaded from HTML, the component ignores Protection property. If two text styles have identical visual attributes, the style with a lesser index will be used.
That is what I was expecting/hoping. Instead, it is creating a new style.When choosing an existing style for using for given formatting loaded from HTML, the component ignores Protection property. If two text styles have identical visual attributes, the style with a lesser index will be used.
Code: Select all
span.rvts13 /* Read Only */
{
color: #c0dcc0;
}
span.rvts17
{
color: #c0dcc0;
}
Thanks, Jim.
Alternatively, would it be possible for TRichView to use prefixes (CSS Extensions) the same way Mozilla & Webkit do?
-moz-
-webkit-
-trichview-
https://developer.mozilla.org/en-US/doc ... Extensions
This way TRichView could save any of its features in HTML/CSS.
-moz-
-webkit-
-trichview-
https://developer.mozilla.org/en-US/doc ... Extensions
This way TRichView could save any of its features in HTML/CSS.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: