Content creation

Discussions related to "the good and proper use" of H5P as a content creation tool

h5p ckeditor more tags

Hi,

I would like to add more tags to the h5peditor's ckeditor and among them "code snippet" .

I understand I can alter a library's semantics through h5p.api.php or directly add more tags to semantics.json .

Is that correct ?

If I do it that way can I add any tag I want or am I limited by h5peditor-html.js ?

And if i am limited by h5peditor-html.js can I just add something like this ?

if (this.inTags("pre")) inserts.push("CodeSnippet");

Thanks

 

Pages