We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Textile Editor Helper (TEH) extension

Development and Programming

simsa's avatar
simsa
14 posts
17 years ago
simsa's avatar simsa

Thanks for the extension! Textile works for entries so far … though no Buttons for formatting text with textile show up. What am i doing wrong? Do i have to switch on a textile formatting button bar somewhere? Thanx for help in advance…

(i am an EE newbie)

       
Eric Barstad's avatar
Eric Barstad
198 posts
17 years ago
Eric Barstad's avatar Eric Barstad

Here’s a weird bug: If I go to edit an entry through the Edit tab, everything works fine. If I try to edit a page (created through EE’s Pages module) and go to the edit screen via the Pages module, TEH doesn’t load in the text areas.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

This Extension hoses Brandon Kelly’s “Playa” (and possibly other extensions that are putting JS in the header). I’ve been trying to fix this all night. Wondering if there is some sort of conflict in the JS in the header and the Playa JS?

It’s unfortunate that this one uses Proyotype. Anyone think they can convert this to a jQuery version?

EDIT: Better yet, has anyone seen markitup? Wonder how difficult that would be to implement as a custom field?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Ryan,

Not entirely certain what the problem is there but you may try adding in the no conflict script for jQuery and see if that works. I recently had problems with getting a script to work as I had both jQuery and Prototype enabled on a page and so added :

<sc*ipt type="text/javas*ipt">
var $j = jQuery.noConflict();
</sc*ipt>

to the page and it all worked out fine. Perhaps check out this page here and see if that helps at all. Not sure if that is what you are experiencing or not but I don’t suppose it would hurt to try. Admittedly any jQuery calls will in any of the jQuery scripts for that page / template that you are using them on will need to have the $j in them instead of just $ but you never know?

Best wishes,

Mark

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I don’t think jQuery is involved here…um, anywhere. Have you read this thread or are you just boosting your post count again, you naughty monkey!?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen
I don’t think jQuery is involved here…um, amywhere. Have you read this thread or are you just boosting your post count again, you naughty monkey!?

How dare you suggest such a thing. If I was just boosting post count then I wouldn’t have posted some technical jargon and gone looking over the net for it!

I feel deeply hurt by that 😉 Going to sulk in the corner for a bit now!! 😊

Actually I got confused as I thought that Playa used jQuery from reading what you had put above. You asked if anyone could convert something to jQuery and not have it as Prototype and as I had this same problem myself (jQuery & Prototype working together and causing problems) just thought I would post what might be a fix.

Now I’m going to go off and sulk!! 😊

Posts + 2 now though instead of 1 because of what you said 😉 😊 😉

Best wishes,

Mark

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

For the record, I just whipped together an Extension for a Markitup custom field…and Playa and Markitup both play very nice together. Seems that Markitup is playing nice with everything so far, actually.

It isn’t ready for prime time, but it’s working quite well. If anyone is interested, and I can polish it a bit, I may release it.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen
For the record, I just whipped together an Extension for a Markitup custom field…and Playa and Markitup both play very nice together. Seems that Markitup is playing nice with everything so far, actually. It isn’t ready for prime time, but it’s working quite well. If anyone is interested, and I can polish it a bit, I may release it.

Yep! Interested. Polish it. Release it and I’ll take it!! Markitup does look very nice.

Will make up for what you said about me earlier 😉 !!

Still getting over that one 😊

Best wishes,

Mark

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I might try to release a super simple version, just so it’s out there. It would be nice to incorporate per-field settings (like, default for one field, textile for another, etc). Attached is a screenshot of the field in action.

This might make for a nice alternative to TEH.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen
I might try to release a super simple version, just so it’s out there. It would be nice to incorporate per-field settings (like, default for one field, textile for another, etc). Attached is a screenshot of the field in action. This might make for a nice alternative to TEH.

Now that’s just naughty posting an image preview but no extension download!! 😉

I think from what I have seen from Markitup it seems as though you can make it spit out the code you want as opposed to the bloat that other Text Editors seem to do which in my mind makes it the best yet for this kind of thing.

Looking forward to perhaps a look at the extension! 😉

Best wishes,

Mark

       
imagehat's avatar
imagehat
68 posts
17 years ago
imagehat's avatar imagehat

Hi guys - Ryan, I wanted to say thanks for all your detective work - I’ve got at test install of playa and teh going now so I’ll see if I can get a fix going - probably later tonight. Sorry to have ignored this thread lately… have been swamped with client work.

Also, I like markitup, but not being able to do multi-line lists is a deal-breaker for me, otherwise I’d be much happier with a jQuery solution too. I don’t think the Slate guys are really using prototype for anything other than attaching the domready event and instantiating the class - if I can’t resolve the conflict cleanly I might try porting it. That was my plan for EE 2.0 anyway, unless something better comes along of course…

-mike

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Cool, a fix would be nice. I’m pretty close to having a Markitup custom field workable.

If TEH could be ported to jQuery, we might have a winner there, though! Thanks for looking into it.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

This TEH alternative is shaping up nice (see attached screenshots). Per field settings, most importantly. I think it’s ugly as heck under the hood, but it seems to be working, at least.

I really should be working on client work right now…

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
Also, I like markitup, but not being able to do multi-line lists is a deal-breaker for me

I didn’t understand what you meant by this at first, but now I think I get it: this thing doesn’t do lists well at all. In Textile mode, the last item always breaks off into another list, no matter what. I tried everything, short of resorting to full-on html. Is that what you were talking about?

Otherwise, this thing is crazy, and it loads extremely fast, even on my test page where I have three Markitup fields, each set to a different setting.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Are we going to get to see the finished extension soon Ryan? 😉

Oh go on! Please, pretty please!

Looks great what you have done so far. Would love to see how it is all done though, I mean integrating something external into an extension. There’s quite a few things I’d like to do like that and give out to the EE community if only I had the knowledge of how to do it and this would be a great leap-board to learning all of that I reckon.

Best wishes,

Mark

       
First 2 3 4 5 6 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.