ckan / ckanext-pages

A simple builtin CMS for CKAN sites
GNU General Public License v3.0
51 stars 101 forks source link

Insert HTML code #75

Open martinszy opened 6 years ago

martinszy commented 6 years ago

Hello, I'm thinking of a workflow that involves people adding embed codes in github pages, is that possible? What should I manually patch to allow ckeditor to insert html directly?

Thanks.

torfsen commented 6 years ago

I don't understand how you want to use GitHub pages, but you can insert HTML as follows:

If you use the standard editor, it should be enough to set ckanext.pages.allow_html = True, which will allow you to embed HTML in your Markdown page texts (Markdown syntax will still be converted).

AFAIK, the WYSIWYG editors in ckanext-pages currently are not set up to support direct HTML editing. For CKEditor there was the PR #48, but it was closed by the author before it could be merged.

martinszy commented 6 years ago

Is great about the PR! It seems to do exactly what I want... so maybe we can create a new one so we can merge it? BTW: I think I mean Ckan pages and my mind got confused.