Bloom.Book.HtmlDom.AddCreationType C# (CSharp) Method

AddCreationType() public method

The Creation Type is either "translation" or "original". This is used to protect fields that should normally not be editable in one or the other. This is a bad name, and we know it!
public AddCreationType ( string mode ) : void
mode string
return void
        public void AddCreationType(string mode)
        {
            // RemoveModeStyleSheets() should have already removed any editMode attribute on the body element
            Body.SetAttribute("bookcreationtype", mode);
        }

Usage Example

Example #1
0
 private void AddCreationTypeAttribute(HtmlDom htmlDom)
 {
     htmlDom.AddCreationType(LockedDown ? "translation" : "original");
 }