Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-28 06:28:56

Slaktad
Archived Plugin Author
From: Linköping, Sweden
Registered: 2005-06-28
Posts: 50
Website

joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

This is a plugin that loads the MarkItUp editor into the article body/excerpt textareas.

I haven’t tested it very much, but it seems to work at least in FF and IE6 for now. Please report any bugs related to the plugin.

Currently I’ve created a customized MarkItUp-package for use in Textpattern, however I will try to make the original package work in future versions as it is mostly CSS that is customized.

Current version

0.1.3:

  • Is now using MarkItUp 1.1.6.

Installation

Download the plugin joh_admin_markitup_v0.1.3.txt and the customized markitup-package: markitup-1.1.6-for-joh_admin_markitup.zip. Install and activate the plugin, unzip markitup-txpified.zip in your /textpattern/-directory and you’re set.

Last edited by Slaktad (2010-01-17 09:53:00)

Offline

#2 2008-03-28 16:14:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,006
Website GitHub Mastodon Twitter

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

I take it that you used the textile editor?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-03-28 17:15:09

Slaktad
Archived Plugin Author
From: Linköping, Sweden
Registered: 2005-06-28
Posts: 50
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

colak wrote:

I take it that you used the textile editor?

At the moment, yes.

Offline

#4 2008-03-30 13:03:18

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Hi Slaktad,

I’ve installed and activated the plugin, unzipped markitup-txpified.zip and placed the “markitup” folder in Textpattern – but nothing changes.

I’ve played with the folder permissions – up to and including making everything 777, and I get the normal Textile input page.

This isn’t the end of the world – Markitup is just “eye candy” really – but have you any thoughts?

I will provide more details as needed, of course.


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#5 2008-03-30 13:20:39

Slaktad
Archived Plugin Author
From: Linköping, Sweden
Registered: 2005-06-28
Posts: 50
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

keith wrote:

Hi Slaktad,
I’ve installed and activated the plugin, unzipped markitup-txpified.zip and placed the “markitup” folder in Textpattern – but nothing changes.
I’ve played with the folder permissions – up to and including making everything 777, and I get the normal Textile input page.
This isn’t the end of the world – Markitup is just “eye candy” really – but have you any thoughts?
I will provide more details as needed, of course.

What browser are you using and is javascript turned on? Do you get any javascript errors?

Offline

#6 2008-03-31 12:41:59

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

I get problem too, like keith have. Installing plugins and store the markitup to my textpattern folder, and get nothing after activate joh marjitup plugin.

I am is using Epiphany and Iceweasel. And I get this js error report :

 johTextileSettings is not defined

Offline

#7 2008-03-31 12:49:48

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Nice. It works good for me. The only issue is that the Markitup textarea doesn’t go 100% width of the original textarea. I have to manually adjust it (this happens for every reload and can be annoying). I think this can be fixed in css. Any hint on this?

Thanks!

Z-

Offline

#8 2008-03-31 17:48:30

joel
Member
Registered: 2004-11-26
Posts: 162

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Nice plugin slaktad! :))

Is there any way of add this to the excerpt field as well?

Offline

#9 2008-03-31 18:09:23

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

This works for me but certainly slows down the loading of the page it’s on.


My Plugins

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

Offline

#10 2008-03-31 18:41:11

Slaktad
Archived Plugin Author
From: Linköping, Sweden
Registered: 2005-06-28
Posts: 50
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

kus wrote:

I get problem too, like keith have. Installing plugins and store the markitup to my textpattern folder, and get nothing after activate joh marjitup plugin.
I am is using Epiphany and Iceweasel. And I get this js error report :
bc. johTextileSettings is not defined

I’m sorry, but I have no experience of Epiphany and Iceweasel and have no idea about jQuery support in them. The “johTextileSettings is not defined”-error is most likely triggered when the settings variable isn’t found. Can you find the file ‘set.js’ in ‘[your-base-url]/textpattern/markitup/sets/textile/’ ?

Zanza wrote:

Nice. It works good for me. The only issue is that the Markitup textarea doesn’t go 100% width of the original textarea. I have to manually adjust it (this happens for every reload and can be annoying). I think this can be fixed in css. Any hint on this?

Fixed in v0.1.1.

joel wrote:

Nice plugin slaktad! :))
Is there any way of add this to the excerpt field as well?

Thank you. MarkItUp is now (v0.1.1) also loaded into the excerpt field.

MattD wrote:

This works for me but certainly slows down the loading of the page it’s on.

Unfortunately you’ll have to live with that. Everything’s loaded via javascript, which, as far as I know, is the only way to do this without modifying txp-core files directly.

Offline

#11 2008-03-31 21:20:54

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Thanks Slaktad! Now it works just fine, but…

  1. with Markitup loaded also for the excerpt, the keyboard shortcuts (one of the reason I’m using it) always works only in the excerpt. I think this is natural, because it’s the same shortcut, but there seems to be a problem in detecting the focus (maybe a problem of MarkItUp itself).
  2. If I disable MarkItUp for the excerpt (I don’t need it) hacking in the plugin source code, then another bug is happening: some shortcut (i.e, CTRL+B for bold or CTRL+I for italic) are working bad. That was true also in the previous version. Just select a word and try: instead of *word* for italic, it output a weird *word*** , actually doubling the opening and closing characters at the end of the word!…

What’s curious is that the latter bug doesn’t happen if I load Markitup also in the excerpt!… But then the first bug happens… :)

Nothing catastrofic, but I can’t figure out why.

Last edited by Zanza (2008-03-31 21:24:25)

Offline

#12 2008-04-01 04:16:29

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

@Slaktad

Can you find the file ‘set.js’ in ‘[your-base-url]/textpattern/markitup/sets/textile/’ ?

No, I cant found it, my set.js is in /textpattern/markitup folder.

Last edited by kus (2008-04-01 04:18:38)

Offline

Board footer

Powered by FluxBB