Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#13 2008-04-01 05:27:37

Slaktad
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:

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

Maybe you didn’t unzip markitup-txpified with the folder structure?

Offline

#14 2008-04-02 01:33:40

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Yes, my fault. Work fine now , thanks :D

Offline

#15 2008-04-03 19:23:07

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

I just found MarkItUp today and I was going to make a plugin but something told me to search the forums first and bam here you are with a plugin.

Thanks I have it installed and its working perfectly.


Ryan

Offline

#16 2008-04-04 10:25:44

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Slaktad, do you have any hint regarding the two alternative bugs described here? Maybe they need a better description? Let me know, thanks!

Z-

Offline

#17 2008-04-04 19:53:23

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Zanza wrote:

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!…

I updated MarkItUp to 1.0.3 and separated the settings variables for article body and excerpt in v0.1.2. The shortcuts seem to work now. I’m not able to reproduce the other bug either (although I can admit I’ve tested it for like 2 minutes :P).

Last edited by Slaktad (2008-04-04 19:54:08)

Offline

#18 2008-04-06 14:39:37

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Uhm. Thanks for your effort. I notice there’s still some bug there, but.. it isn’t that stable! :) So I can’t report it for sure.

Now it seems that the shortcuts works, but they apply both on body and excerpt at the same time!! :-/

This is valid for inline markup, like ctrl+b and ctrl+i. But when adding a block to the body, i.e. ctrl+3, the h3. textile code is added in the excerpt instead. In the body some ‘- -’ appear where h3. is expected.

I can’t tell if this is a problem caused by MarkItUp itself or by the plugin implementation, though.

I’m using Firefox on mac, so I can’t say if this cab be found in every browser. I’ll report back when I have more reliable data.

Bye

Z-

Offline

#19 2008-04-06 14:52:37

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

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

Ok, just tried MarkItUp examples on author’s site, and I can report that the shortcuts are buggy in MarkItUp itself, with Firefox/mac osx. So it looks like it’s not a problem caused by your plugin, if we talk of bugs that happens when there is only one instance of MIU loaded (only in the body, I mean).

I can’t tell if the specific bugs that happens when both body and excerpt instances are loaded are plugin-specific or can be referred to MIU itself, as I can’t try two MIU instances on the MIU site.

I’ll run some more test and then report bugs to Jay Salvat.

Z-

Offline

#20 2008-04-16 20:23:57

EddieG5
Member
From: Georgia
Registered: 2004-03-03
Posts: 96

Re: joh_admin_markitup: MarkItUp Universal Markup Editor in Txp

I’ve installed and enabled the plugin and uploaded the folder into my textpattern/ install, but do not see anything. Meaning, when I go to the write tab, I don’t see anything that allows me use any markup tools. Is there anything else I need to do? Could someone post a screenshot of what I should be seeing?

Thanks!

Offline

Board footer

Powered by FluxBB