Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the default "About" site page with more styles. #40

Open
allanaaa opened this issue Jul 18, 2022 · 2 comments
Open

Expand the default "About" site page with more styles. #40

allanaaa opened this issue Jul 18, 2022 · 2 comments

Comments

@allanaaa
Copy link

Equivalent to omeka/omeka-s#1870. But simpler. No inbuilt embed codes do anything useful here out of the box.

Just found out, in Classic you can use the HTML editor to insert a "hr" horizontal line, but it gets erased as soon as you save the page. Same for putting text in a "code" tag (one of the menu options) - it appears as formatted in the HTML editor, but when you save the page the two tags disappear.

Something like this:

<p>This is an example page. Feel free to replace this content, or delete the page and start from scratch.</p>
<ul>
<li>This is a bullet list.</li>
<li>Second entry.</li>
</ul>
<p>Back to normal again.</p>
<ol>
<li>This is an ordered list.</li>
<li>Second entry.</li>
</ol>
<p>Back to normal again.</p>
<blockquote>This is a blockquote.</blockquote>
<p>Back to normal again.</p>
<p><a>This text is a link, which currently points to nothing.</a></p>
<p><strong>This text is bold, in a "strong" tag.</strong></p>
<p><em>This text is italicized, in an "em" tag.</em></p>
<p><span style="text-decoration: underline;">This text is underlined, using a span.</span></p>
<p>This text is <sub>subscript</sub> and <sup>superscript</sup> using "sub" and "sup", which can be used for adding notes and citations.</p>
<h1>This is an H1 title, the same size as the Page Title.</h1>
<h2>This is an H2 header.</h2>
<h3>This is an H3 subheader.</h3>
<h4>This is an H4 subheader.</h4>
<h5>This is an H5 subheader.</h5>
<h6>This is an H6 subheader.</h6>
<pre>This text is using the "Formatted" setting in the HTML editor.</pre>
@zerocrates
Copy link
Member

Things that are getting erased are probably down to HTML Purifier: you can set what elements are allowed in the security settings page.

@allanaaa
Copy link
Author

Yep. Not in S but in Classic. So maybe that should be off by default in new installations? Or would you rather just add all the elements suggested by HTML editor to the allowed list in new installs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants