New Editoria Typescript
As it stands now, the HTML that XSweet sends is wrapped in the body
tag, like below:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
</head>
<body>
<h1>test</h1>
<p> some test </p>
</body>
</html>
From now on, Wax supports multiple editing surfaces, so we have to declare which HTML block goes to which editing surface,
so Wax can make the matching. We decided to call our primary editing surface main
. So all HTML that would go in the body
, should be wrapped in the following tag. We will follow this up with how different types of containers should be set up (specifically for notes) in a separate issue.
<container id="main">
<h1> test </h1>
<p> some test </p>
</container>
Final output would look as follows:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
</head>
<body>
<container id="main">
<h1> test </h1>
<p> some test </p>
</container>
</body>
</html>