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

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

I’m finally getting the time (and need) to work on this right now. I should have it ready for some beta testing in a few days, I’ll post here when I do, it would great if a few people could help me kick the tires.

BTW, I’m also working on a fieldtype that would allow you to use your own markitup sets (textile, markdown, custom…) with EE2’s own formatting buttons (or at least using the native theme). I think markitup will be a more integrated way to go than the original TEH javascript since EE’s already using it.

       
e-man's avatar
e-man
1,816 posts
15 years ago
e-man's avatar e-man
BTW, I’m also working on a fieldtype that would allow you to use your own markitup sets (textile, markdown, custom…) with EE2’s own formatting buttons (or at least using the native theme). I think markitup will be a more integrated way to go than the original TEH javascript since EE’s already using it.

+1 to that, sounds like a great solution.

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

Just a quick note to let you know I’ve put together a new version for EE 2.0.x

The toolbar also works in Write Mode, and I went ahead and added an image button that integrates with the EE File manager.

Download at Github. If you do try it out, let me know if you run into anything funky.

Oh, and if you’re looking for the EE2 textile plugin F. Albrecht has been good enough to set us up (forum thread).

       
e-man's avatar
e-man
1,816 posts
15 years ago
e-man's avatar e-man

A quick test run, and it’s working beautifully, many thanks!

Only 1 minor gripe so far, when inserting an image it will insert straight html, rather than the textile code, but I’m guessing that can be tweaked inside textile-editor-config.js ? (as well as disabling some buttons?)

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

I debated how to insert the image, and went with EE’s straight html way to make things simple. But indeed it would be easy to tweak the inserted code string in the textile-editor-config.js.

Another thought - I’m not sure if it’s worth a setting, but do you think a setting for how to insert image URLs - “html” or “textile encoded” would be worthwhile?

I think either solution would be easy, so I’m game to add it in if it would be helpful.

       
e-man's avatar
e-man
1,816 posts
15 years ago
e-man's avatar e-man

Personally I don’t mind at all, I’m just thinking of clients who received a textile manual with their EE-install and all of a sudden see some html injected 😊

If it’s easy to add as an option I’d consider it, if not I’d leave it to the devs to tweak the config file.

       
Adam Khan's avatar
Adam Khan
315 posts
10 years ago
Adam Khan's avatar Adam Khan

Just in case anybody else is still using this addon (and still viewing these forums): in EE 2.8.1 TEH is broken. Turns out that on the edit screen the textarea id has been removed. Simple fix: in textile-editor-cp.js, at lines 14 and 18, swap out

"#"+canvas

for

this

. Now, how to fix Writemode?

       
First 11 12 13

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.