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

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

What is the list of extensions you have installed? Do you happen to have any Solspace extensions installed? I’ve seen this happen for two reasons: Solspace uses a “noconflict” mode which can cause other jQuery JS written to the page to fail, or there may be another extension installed that happens to be calling jQuery again. If jQuery is called twice, many extensions using jQuery can fail.

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design
What is the list of extensions you have installed? Do you happen to have any Solspace extensions installed? I’ve seen this happen for two reasons: Solspace uses a “noconflict” mode which can cause other jQuery JS written to the page to fail, or there may be another extension installed that happens to be calling jQuery again. If jQuery is called twice, many extensions using jQuery can fail.

I’m using Primary Category and User Authors from Solspace. When I get a chance, I’ll try disabling them and see what happens. Thx.

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

I believe User Authors is a major culprit. I think I’ve run into that one myself. User authors ties into the User module, which does NOT make use of jQuery in the Control Panel - it calls its own jQuery file. I don’t believe Solspace has ever updated this. I think I had to hack this in the past - but I had to comment out the call to jQuery in the User module - because I knew I was already using CP jQuery. I’ll bet that’s it.

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design
I believe User Authors is a major culprit. I think I’ve run into that one myself. User authors ties into the User module, which does NOT make use of jQuery in the Control Panel - it calls its own jQuery file. I don’t believe Solspace has ever updated this. I think I had to hack this in the past - but I had to comment out the call to jQuery in the User module - because I knew I was already using CP jQuery. I’ll bet that’s it.

Sounds likely - I’ll experiment and chop out that call if I need to.

“Can’t we all just get along” ; )

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design

I turned off User Authors, Primary Category and every other jquery-enabled cp extension that I could find - still getting the same error.

One other symptom - when SL Google Map is active at the same time as TEH, the jquery for the map isn’t called. When TEH’s off, it works. When SL GM is off, TEH still won’t work.

Grr. Really want to get all of this playing nicely together….

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

Do they both write jQuery to the source of the control panel page or is all of their jQuery self-contained? What’s the error? I find that any jQuery that is in the markup of the page should be wrapped in this:

(function(){

})(jQuery);

The problem, as I said before (but may have not been clear on) may be the User Module. Can you view source to to double check if Solspace is putting any jQuery code in the page at all, and whether or not jQuery is being called/loaded twice? We really need to see what the source code looks like, warts and all to know what the issue is.

(My offer still stands to take a look in your control panel if you want to make a user account for me)

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design
Do they both write jQuery to the source of the control panel page or is all of their jQuery self-contained? What’s the error? I find that any jQuery that is in the markup of the page should be wrapped in this:
(function(){

})(jQuery);
The problem, as I said before (but may have not been clear on) may be the User Module. Can you view source to to double check if Solspace is putting any jQuery code in the page at all, and whether or not jQuery is being called/loaded twice? We really need to see what the source code looks like, warts and all to know what the issue is. (My offer still stands to take a look in your control panel if you want to make a user account for me)

The error I’m getting from TEH, whether or not any other JQuery-calling extensions are running, is “$(”#” + canvas).TextileEditor is not a function”

Before I monkey w/ hacking away at anything else, I want to at least get TEH running on its own, and can’t seem to get that going to begin w/. I’m sure I’ve got something pretty basic all messed up, but don’t know what that is ; )

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design

The error was caused by an stupid .htaccess rule in my themes folder. ‘Deny from all’ tends to break a lot of stuff ; )

Took a lot of poking around to find this, but it’s fixed.

Don’t know where that file came from - hopefully an error from a recent server move, and not an indication of anything malicious going on.

Seem that if the script can’t find the images, it’s gonna fail. But, while I’ve fixed this extension, I’m having a heap of troubles w/ some others.

User Authors doesn’t function - just spins and gives no result when you search for an author. Doesn’t seem to matter whether TEH is running or not.

Markitup doesn’t work, and kills FF Matrix, to boot. Turn it on, and I get:

$(".markitupfield.xhtml, .markitupfield.none, .markitupfield.br").markItUp is not a function
obj.dom.$table.sortable is not a function

both w/ the path to jquery set in the MIU settings and w/o.

It’s enough to cause a serious headache.

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

Sounds like you got TEH figured out, so anything further about the jQuery problems probably belongs in another thread.

I don’t know what to tell you about your other issues - and I agree it can cause a headache. I know, because I’ve solved this problem in the past. I have most of these add-ons working together on a large website so I know what I’m talking about. I’ve offered to take a look at your Control Panel, and, barring that, mentioned that we would need to see the source code of a control panel page where the error is happening. Without that, I’m powerless to help you. I can guarantee you have a jQuery problem - especially if you have User Authors enabled.

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design

Ryan,

Thanks for your help in sorting this one out.

If I can’t get this jquery conflict figured out, I just might take you up on your generous offer ; )

       
stinhambo's avatar
stinhambo
1,268 posts
15 years ago
stinhambo's avatar stinhambo

Is there a way to dynamically create the correct path to the theme folder in config.php?

Something like -

$conf['teh_folder_path']  = "${_SERVER['DOCUMENT_ROOT']}/themes/teh/";
$conf['teh_folder_url']   = "http://${_SERVER['HTTP_HOST']}/themes/teh/";
       
ShawnCBerg's avatar
ShawnCBerg
79 posts
15 years ago
ShawnCBerg's avatar ShawnCBerg

Great plugin. Just used this for our first EE site. Thanks!

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
15 years ago
Sean C. Smith's avatar Sean C. Smith

never mind - uninstalling and reinstalling fixed my problem.

       
Matt Stein's avatar
Matt Stein
110 posts
15 years ago
Matt Stein's avatar Matt Stein

I’m trying out this extension for the first time and I was having the same exact issue as ContextDesign (an error that looks like missing jQuery, even though it’s properly referenced and loaded.) The problem, for me, was that I downloaded TEH from Slate and expected that to work.

So, as a warning to people like me who may not have been paying attention: be sure to use the TEH you find in the EE extension package, NOT the version you’d download from Slate.

Also, thanks imagehat for a great extension!

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

Any plans for an EE2 version of this? Currently EE2 doesn’t have a single Textile or Markdown editor, so this would fill a real gap.

       
First 10 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.