Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-03 18:14:49

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

[request] Really easy write tab textile plugin based off Janko's jQuery demo

I just saw a really cool thing posted over at Janko at Warp Speed’s site (select some text in the textarea). Can it be made into a plugin? If so I think it would be very useful for Txp/textile noob’s

The writup for his demo is here

Let me know what you think

Cheers


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#2 2010-12-03 18:43:01

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 590
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Whoa, that’s really cool! I’d love to see that combined with Textile.

Offline

#3 2010-12-04 00:52:31

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Hmmmm, interesting. I may have to spend some time playing with this over the weekend. Having recently turned a jQuery plugin into a Textpattern plugin that part should be easy.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2010-12-04 09:21:48

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

That’s awesome Matt! Let me know if you need anything or help testing


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#5 2010-12-06 03:29:39

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Which textile functions should be included? bold, italic, and underline don’t sound very textileish.

For now you can try it out by downloading from here

It currently does bold, italics and link.

Last edited by MattD (2010-12-06 04:12:00)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#6 2010-12-06 06:25:03

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

What about a configuration part at the begining of the code to create our textile functions ? Paragraph with some class, … titles, …

Offline

#7 2010-12-06 06:28:23

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

I try the plugin : awesome !
But : When I try bold and italic (last FFox on Win 7) I get 2 “*” or 2”_” before and next the words …

Offline

#8 2010-12-06 07:02:24

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Right, **bold** and __italics__ are the correct format for those tags. I could use *strong* and _emphasis_ instead but I followed the given example for the first shot.

Last edited by MattD (2010-12-06 07:05:39)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#9 2010-12-06 08:43:13

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Hello !
Thanks for implementing this !
I can’t make it work. I tried on local/non-local txp install, txp 4.2 and 4.3, no success.

on my local install, with php 5.3.2, I get this:

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 24

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 25

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 26

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 27

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 28

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 29

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 30

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 31

Erreur lors du chargement du plugin msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 32

p.

Offline

#10 2010-12-06 14:02:40

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

I have the same errors, only in english, as above… TXP 4.3

A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 24
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 25
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 26
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 27
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 28
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 29
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant tag – assumed ‘tag’ on line 30
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant start – assumed ‘start’ on line 31
A problem occured while loading the plugin: msd_minibar -> Notice: Use of undefined constant end – assumed ‘end’ on line 32

Any ideas?


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#11 2010-12-06 14:42:49

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

While the plugin does not work for me, I do have a suggestion for it. Could you include unordered lists as well, so that when someone has typed in a bunch of text with line breaks, one selects the text & the * is added at the start of each line?

Just a thought..

Also, h1-h3 tags might be useful as well.. :)

Cheers for all the hard work so far Matt


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#12 2010-12-06 14:45:56

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [request] Really easy write tab textile plugin based off Janko's jQuery demo

Woops, I’ve fixed it now. I was trying a few things and accidentally modified that one instead of the development version. Sorry.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB