2 of 7
2
Textile Editor Helper (TEH) extension
Posted: 22 June 2007 11:01 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

Hmmm… I’m not familiar with that one (though I’m now enjoying resizing all text areas natively in Safari 3) but I’ll try to check it out and see if it’s an extension conflict or a javascript thing.

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 06 August 2007 05:18 PM   [ Ignore ]   [ # 20 ]  
Grad Student
Rank
Total Posts:  98
Joined  06-04-2006

First off, this extension is great, and I’ve installed it on several sites.

One thing I’ve noticed, though:

For bullets and numbering:

When I select text and click on either the bullet or numbering button, a space is inserted before the ” * ” or the ” # “.

Textile won’t render those as bullets or numbers. It has to be the first character in the line.

In other words:

* list 1
* list 2

renders:

  <ul>
      <li>list 1</li>
      <li>list 2</li>
  </ul>

When the first character in the line is a space, you just get this:

* list1 * list2

It’s very confusing for the clients!

Anyone else notice this? I’ve tried it both FF and IE, and it’s the same. Any fixes?

 Signature 

Debra Weiss | drw Design

Profile
 
 
Posted: 06 August 2007 08:37 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  236
Joined  01-18-2006

I get the same thing as Debra.

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 06 August 2007 08:49 PM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

Yes, me too. Extra space in there, which basically says ignore this line for Textile. I find I’m using this on quite a few sites recently, as I set almost everything to Textile.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 07 August 2007 10:55 AM   [ Ignore ]   [ # 23 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

Strange I didn’t notice that space before lists problem before but it looks like a problem with the original Slate plugin as it does the same thing on their demo page. I’ll see what I find out and post and update if I can get it resolved.

Thanks for the feedback!

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 08 August 2007 02:19 AM   [ Ignore ]   [ # 24 ]  
Lab Assistant
RankRank
Total Posts:  162
Joined  01-22-2007

Just wanted to give my thanks and support for this extensions.

I’m close to delivering a new site but I really don’t like the tinymce integration and think this gives a nice mix between going down that path and just using the default text editor.

Great work!

Looking forward to see this develop.

Profile
 
 
Posted: 14 August 2007 02:11 AM   [ Ignore ]   [ # 25 ]  
Grad Student
Rank
Total Posts:  44
Joined  12-27-2002

Hello,
On my fresh new install (EE 1.6)the two links button act as Submit or Update button ???
Some times, on other buttons (lists) I must clic twice to see the textile tag.
Any plan to insert image tag ? Or a textile help window ?

Profile
 
 
Posted: 29 October 2007 02:19 PM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

I’m trying to add a default button that takes an image and surrounds it with a div that floats left, and has a caption. Works great in Firefox, but in Safari I’m getting a weird error (see attached pic).

Here’s my new button code:

teButtons.push(new TextileEditorButton('ed_leftpic', 'image_left.png',
' <div class="picleft" style="width:0px;">\n ', ' \n <p class="piccredit">CREDIT</p>\n
<p class="picdesc">DESCRIPTION</p>\n </div>'
, '', 'Float Picture Left'));


If you have an image in the body area, you select it and click the button, which results in the following:

<div class="picleft" style="width:0px;">
<
img src="{filedir_1}pic.jpg" width="275" height="78" />
<
p class="piccredit">CREDIT</p>
<
p class="picdesc">DESCRIPTION</p>
</
div>


All the user has to do then is set the width of the div to be the same as the width of the picture, and fill out the credit and description (or delete them, as they’re optional).

It’s a slick solution for the users and like I said, this works great in FF. Compare the two attached pics to see how it’s supposed to look, and how Safari is rendering it. For these more complex buttons, is there some way I should be escaping the markup so that Safari renders it correctly in the browser? I’ve tried a few different things, but if someone knows off the top of their head that would be great as I couldn’t get this error to go away.

Image Attachments
button_ff.pngbutton_saf.png
Click thumbnail to see full-size image
 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 29 October 2007 05:35 PM   [ Ignore ]   [ # 27 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

ryan - try swapping the quote marks enclosing the strings in double quotes and using single quotes for the class parameters like so:

teButtons.push(new TextileEditorButton('ed_leftpic', 'image_left.png', " <div class='picleft' style='width:0px;'>\n ", " \n <p class='piccredit'>CREDIT</p>\n <p class='picdesc'>DESCRIPTION</p>\n </div>", '', 'Float Picture Left'));

The TEH regexp’s are crazy, so I’m not exactly sure why that works but it does for me on a test install.

Let me know if that does it…

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 29 October 2007 08:55 PM   [ Ignore ]   [ # 28 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

That worked! Thanks!

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 30 October 2007 08:09 AM   [ Ignore ]   [ # 29 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

@mdesign - awesome, glad to hear it!

@Jean-Pol - I was finally able to reproduce the submit problem. Do you by chance have Solspace’s Tag module installed? I think there might be a javascript collision somewhere. I’ll have a fix in the next version…

Also just a note to anyone else watching the thread I’m working on an update that fixes the list issue, submit issue, and will add a help button (with configurable url in settings). Have to get through a client crunch but should be posting it in the next couple days.

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 31 October 2007 10:04 AM   [ Ignore ]   [ # 30 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

I’ve updated the extension - grab version 1.0.4 up top. Fixes the link initial space problem from the original TEH, fixes the Safari “submit” problem with the link buttons (which was a javascript conflict with other extensions using JQuery (like the new Tag module), and also adds a help button to the toolbar with an extension setting to customize the help link (defaults to hobbix.com/textile).

Thanks for everyone’s interest and help debugging!

-mike

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 31 October 2007 10:54 AM   [ Ignore ]   [ # 31 ]  
Grad Student
Rank
Total Posts:  76
Joined  08-03-2002

just installed the latest version and enabled the extension - installed the textile plugin as well - adding a new post, I don’t get any toolbar at all - no error messages either - am I missing something here?

thank you in advance for your help.

Profile
 
 
Posted: 31 October 2007 01:29 PM   [ Ignore ]   [ # 32 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

mmjaeger - is the folder named “teh” uploaded your site root? That’s the default location the extension expects, but you can go into the extension’s settings and change the paths if you want it somewhere else.

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 31 October 2007 01:31 PM   [ Ignore ]   [ # 33 ]  
Grad Student
Rank
Total Posts:  76
Joined  08-03-2002

this is my setting for instance: http://localhost/sites/dev_mmjaeger/teh/javascripts/prototype.js - it’s just not working

Profile
 
 
Posted: 21 November 2007 08:10 AM   [ Ignore ]   [ # 34 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

Hi, thanks for the update. I just updated this Ext on a site that previously had 1.0.2 running. Going in to edit an entry results in:

Notice: Undefined index: help_url in /home/.../.../.../extensions/ext.textile_editor.php on line 132

Lines 130-134:

// Help link
  
function teh_help() {
    window
.open("'.trim($this->settings['help_url']).'", "_blank");
    return
false;
  
}

Looking under settings, then to see if the help url is there. Line 220:

$settings['help_url'] = 'http://hobix.com/textile/';

These lines appear correct to me. I tried uninstalling and reinstalling the extension, but I’m still getting the error. Thanks for taking a look!

UPDATE: There is a phenomenon on the forums known as the Fonzie effect. All you have to do is come here, write a post about what your problem is, and then go back to find it fixed. All I apparently did was go back to the site, and made sure to click “Submit” on the settings page, and now it appears to be working correctly. Whatever. I’ll take it! Thanks for this very useful extension.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 10 January 2008 01:47 PM   [ Ignore ]   [ # 35 ]  
Summer Student
Avatar
Total Posts:  14
Joined  12-16-2007

Hi lavalamp,

Thank you for this beautiful adaptation of the Textile Helper Plugin for EE. I think its great that you even improved it.

I am wrestling to get your latest version working on my frontend (via SAEF). It works great in all browsers, except in Internet Explorer 6 and 7. I am sure it’s a javascript problem, but I can’t seem to find the problem. 

It has something to do with this piece of javascript you wrote which is inserted in the publish/edit pages of EE. What’s making it break in IE and not in all other browsers?

Could you please tell us how to enable the plugin for SAEF?

PS: The orginal TEH works on my SAEF, but due to the space/lists problem, I can’t use it reliably for my members.

Profile
 
 
Posted: 24 February 2008 06:13 AM   [ Ignore ]   [ # 36 ]  
Grad Student
Avatar
Rank
Total Posts:  87
Joined  12-24-2005

I really like this extension and I was about to start building some custom buttons. Frustrating that it’s not in the add-on library, I would have found it much much quicker.

If it could just have a dash of WYSIWYG… Sorry, but that’s what the punters want!

 Signature 

http://www.simonclayson.co.uk

Profile
 
 
   
2 of 7
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65027 Total Logged-in Users: 39
Total Topics: 82116 Total Anonymous Users: 23
Total Replies: 441311 Total Guests: 190
Total Posts: 523427    
Members ( View Memberlist )