Skip to content

Instantly share code, notes, and snippets.

@edamamegreen
Created October 31, 2018 17:59
Show Gist options
  • Save edamamegreen/6991735a693e2b866bc0aaeed9cc9752 to your computer and use it in GitHub Desktop.
Save edamamegreen/6991735a693e2b866bc0aaeed9cc9752 to your computer and use it in GitHub Desktop.
HTMLEditor Inputs&
HTMLEditor Inputs&
Tag Type
CONTENT Tag
strikethrough true -> new InlineView
Unknown tags
All other tags
Strikethrough
start del tag -> True
end del tag -> False
True
content tag -> True
False
super_create
next elem -> super_create
check tag name and type
content tag -> new InlineView
start del tag -> new InlineView
end del tag -> no new InlineView
other tag -> no new InlineView
new InlineView
no new InlineView
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment