I’m unfortunately not a developer, so I have no knowledge of how to do it,
but this would be a great plugin - supporting not only vimeo/ytube, but also twitter, fb, tumblr & other media integration.
although I and the whole Grav Team have a lot of work, I’ll put it on my list. If no one is faster, than you will see this as a plugin shortly in the GPM here. Due to its feature richness, the first release may only support a subset of the library, which will be extended then in later versions.
FYI I’ve started integrating TextFormatter as a plugin into Grav (see the screenshot here http://screenshot.net/l07olf0.jpg ). As you can see, it’ll be fully customizable and will expose almost all options from TextFormatter. Still I have to test it and write some documentary stuff, before I can actually release it. Hopefully in a fey days it will be finished :-/
today I released the TextFormatter plugin. It will be up soon in the GPM. By default it formats all contents in the format
[plugin:textformatter](...content...)
If you set process: true or process.textformatter: true in the page header, then TextFormatter will process the whole page content. It can be highly customized. Feel free to star, fork, like it etc.
Sorry that you have to wait for so long. At first I thought, it will be easy to implement. But after I’ve seen the documentation I thought an easy implementation is not worth the effort and instead I’m doing it the right way. However this plugin is now a “feature monster”. Maybe this is the best integrated plugin in Grav, too, due to its capabilities (extends a process option, is available through [plugin:textformatter](...), has a twig filter etc.).
I hope the wating time was worth it. I’m feeling sorry for the delay if not.
I must say I am very confused. Think of me more as an end user, which I am.
So, I noticed 1.) this plugin is not available (yet) in list of Available plugins
That didn’t stop me - I downloaded it and installed through FTP.
And activated.
2. First thing I noticed upon installation - my edit screen is shaking sometimes when I hover with mouse probably in wrong place, which is a bit annoying, and I have trouble selecting text, and placing cursor to right point where I want it to be.
3. One of the most important things this plugin can is to embed tweets, and youtube, and other media. But I’m confused why when I place whole link in text field, on frontpage I get output that displays that video/tweet, but also in front of it is part of code: ![plugin:textformatter](
1.) is already solved (see here http://getgrav.org/downloads/plugins ). After @rhukster has add it to GPM it will take around 1-2h to catch it up. On your local install it will even appear later, since Grav is caching the repository for one day. But you can force to renew it with e.g. bin/grav update -f.
2.) This needs more clarification. Is your cursor shaking in admin panel? Then it has most likely something to do with the admin panel https://github.com/getgrav/grav-plugin-admin , because TextFormatter is inactive in the admin panel.
In your case you used the exclamation mark, which is not right here. Even if you embed things you write it in Markdown as a link with this special "alt" attribute `plugin:textformatter`. That's Grav sepcific. [Page Inject](https://github.com/getgrav/grav-plugin-page-inject) works the same.
Let me show you; this is what I have in content block:
Doesn’t matter is it this: [plugin:textformatter](http://www.youtube.com/watch?v=QH2-TGUlwu4)
or this: [plugin:textformatter]([youtube]http://www.youtube.com/watch?v=QH2-TGUlwu4[/youtube])
it was a bug indeed, and this fixed it.
this [plugin:textformatter](http://www.youtube.com/watch?v=QH2-TGUlwu4)
works just fine.
Thank you very much
Could you please tell me how to set up path for smileys, now?
I’ve put my smileys in folder user/data/xen and I’d like them to display.
Great to hear! I will fixed it today and release a new version.
concerning your question the best is to set your emoticons path to user://data/xen in the admin panel. From there you can add each icon in the format <acronym>: <filename.extension>. Provided you have an icon user/data/xen/smile.png then add an icon with
":-)" : smile.png
to replace all emoticons with “:-)” in the text with your respective image.
It should work. I tested this with another smiley set. It seems like you have switched of emoticons. But I guess the problem lies somewhere else… Did you set process: true in the TextFormatter configuration page. If not I strongly recommend it. Oterwise you have to use e.g.