Comments (5)
Adding additional tags would prevent them from being filtered out (in https://github.com/h5p/h5p-editor-php-library/blob/master/scripts/h5peditor-html.js#L523-L531), but the editor would not display corresponding buttons for adding them (https://github.com/h5p/h5p-editor-php-library/blob/master/scripts/h5peditor-html.js#L38).
It would be up to the content type author to allow them, but there's no guarantee that the current handler will remain the same (in particular once the CKEditor gets replaced), so I am going to stick to the list of tags in the specification.
/cc @boyum
from h5p-php-library.
By adding mark
and abbr
to the list of tags
on the field in the content type's semantics, these tags can be used. In this case, I've typed in <mark>marked text</mark>
and <abbr title="abbreviation">abbr</abbr>
to the text field, which seems to work as expected.
from h5p-php-library.
@boyum @otacke Thank you for your responses. I do actually not need the editor to display the corresponding buttons to use these tags in the content text. For me it's easy enough to copy/paste the already formatted text into the editor. I would only need these tags to not be stripped out again. I'm unsure to where the changes need to be done if we talk about the Agamotto content type:
And I'm also unsure who could do these changes? Would you be able to make these additions in your source code, would I (or our hosting company) need to fork away or would this be a simple configuration change in our instance https://academy.siscc.org/?
Thanks again for your kind help on this.
from h5p-php-library.
@dosse I fully understood that. You don't need them. But obviously H5P Group tries not to have too many "hidden features" that are not obvious to the common user.
As I said, I am going to stick to the list of tags in the specification. But you can fork or simply use H5P's Authoring tool customization and add those tags via hooks. No need to touch any of the original code or to live with a fork, but if you share the content, on other platforms the extra tags will be filtered out.
from h5p-php-library.
@otacke Thanks for the quick response! We will try your suggestion.
from h5p-php-library.
Related Issues (20)
- h5peditor-select.js - make selected option criteria more flexible
- Is $CFG->mod_hvp_crossorigin documented somewhere? HOT 4
- Separate PHP and JavaScript code HOT 5
- Add triggers for saveContentState/setUserData
- H5P.getUserData not used asynchronously where required HOT 1
- GDPR infringement HOT 1
- Error while playing content in v1.24.3
- When is next release scheduled? HOT 3
- "We will make available documentation and tutorials for creating platform integrations in the future." HOT 2
- H5PExport::createExportFile() performance issues
- Error Uncaught TypeError: Cannot read properties of undefined (reading 'field') HOT 1
- H5PCore in Tag 1.24.4 has a missing function libraryToFolderName HOT 1
- Support for MPEG-DASH format
- [BUG] Invalid argument supplied for foreach()
- [BUG] iframe embeds are not populated in the parent context.
- Class file structure and simplifying integration into a framework HOT 1
- Resizing problems of the container when calling mozRequestFullScreen() HOT 5
- add Moodle comp for 1.26 HOT 3
- Moodle-Plugin mod_hvp produced embed code not detected by h5p-resizer.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-php-library.