Input format test

3 posts / 0 new
Last post
#1 24. October 2017 - 23:50
Sandro
Sandro's picture
Offline
Last seen: 4 years 9 months ago
Joined: 22.05.2015 - 18:08

Input format test

Some input format tests:

HTML:

Strong

Block quoted

  • First item
  • Second item

Markdown:

*Single asterisks* or _single underscores_ = Emphasis
**Double** or __double__ = Strong
This is [a link](http://the.link.example.com "The optional title text")

Smileys:

Inserting image with IMCE:

Inserting link with IMCE:

72aecec8-286f-412a-bcc1-656f230a4c57.jpg (329.22 KB)

So far, so good…

Sandro

26. October 2017 - 17:55
Sandro
Sandro's picture
Offline
Last seen: 4 years 9 months ago
Joined: 22.05.2015 - 18:08

Re: Input format test

I am not really comfortable with the 'Markdown' syntax, so switched from [https://www.drupal.org/project/markdown Markdown filter] to [https://www.drupal.org/project/pearwiki_filter PEAR Wiki filter], which is in a desolate state.

Next attempt to get proper Mediawiki tags with [https://www.drupal.org/project/mediawiki_api MediaWiki API] which is at least still under development, but also not functional. So no Wikipedia-like formatting and back to plain HTML.

26. October 2017 - 18:04
Sandro
Sandro's picture
Offline
Last seen: 4 years 9 months ago
Joined: 22.05.2015 - 18:08

Re: Input format test

@Eko: Next, trying to get at.js to work.

An at.js demo is here: http://ichord.github.io/At.js/

This at.js listener is supposed to be active on entity 'name' (triggered by @):

data-value="${atwho-at}${name}">${name}

Other at.js listeners should be active

* on bundle 'forum topic' and entity property 'title' (triggered by #), and
* on bundle 'image' and entity property 'filename' (triggered by :).

So in therory, the at.js listeners could, for example,

* autocomplete user names (with @);
* autocomplete link titles (with #);
* autocomplete smileys (with :, as shown in the at.js demo);

However, so far it's just theory - that thing does not work at all.

Sandro