On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




Quicktags editor not working on edit post.

UserPost

3:58 pm
15 Jun 2008


Defcon

Member

posts 12

 
1

After having a user recently tell me that they couldn't use the quicktag editor in order to post links I did a little investigation work to find out what was going on and seemed to have found a huge problem on my site at least.


Firstly.

When editing a post the quicktags editor is not longer working for me. Clicking on any of the quicktags doesn't seem to do anything. If you try to edit in a link for example the pop up box displays and asks for the link address but once you click ok nothing changes, no code is added in around whatever you had highlighted.

Secondly

I have also noted that once I create a link in a first time post it has the standard a href link construction, but when I edit the post target=”_blank” has been added into the link code (and this gets added in again everytime I edit the post so sometimes there can be 3 or 4 iterations of it on a heavily edited post.)

Thirdly

I turned on the TinyMCE editor to see if this fixed the problem, however this didn't create links at all and merely wrapped the highlighted text with a href and /a


As of yet I have not managed to track down the initial problem of why this specific user cannot post links in his forum posts.


And in order to be helpful.

Here is a link to a forum topic where you can see the target=”_blank” occuring.

and below is a list of the current active plugins on the site

AddQuicktag
Akismet
All in One SEO Pack
Chunk Urls for WordPress
Dashboard: Recent Comments Extended
Dashboard: Recent Posts Extended
Dashboard Widget Manager
Google XML Sitemaps
Maintenance Mode
NextGEN Gallery
NextGEN Gallery Widget
No Self Pings
Optimize DB
Plugin Central
Register Plus
Search and Replace
Search Everything
Search Regex
Simple:Press Forum
Simple Tags
Ultimate Google Analytics
WordPress.com Stats
WordPress Database Backup
WP-Deadbolt (Simple Forum Version)
WP-Mail-SMTP
WP-phpMyAdmin
WP Grins
Youtube Brackets


Hope someone might have a clue as to what is going on cos it looks like something strange is happening but I have no clue where its coming from.


Cheers

Defcon

4:21 pm
15 Jun 2008


Mr Papa

Moderator

Arizona, USA

posts 1437

 
2

not sure I follow all of your issues you are reporting… but lets take what I can see in pieces…

1) there is an issue with QT in 3.1.2… problem is that you are in effect getting both editors which is causing a problem…  fix will be forthcoming in bug fix release around end of month…

2) all the links in the referenced post seem to work for me, so not sure what issue you are having creating links unless its related to 1)

3) you control whether links open in current window or new window… go to forum, manage options, the post tab, the posts link filtering section… you probably have open links in new tab/window checked

Did I miss any other issues?

4:46 pm
15 Jun 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5015

 
3

The 'double editor' problem only happens when a user has the QuickTags editor checked in their profile. If it is set site wide in the forum options then it is OK.

6:37 pm
15 Jun 2008


Defcon

Member

posts 12

 
4

Ok lets see if I can get a handle on this, I will put on my old QA hat and see if that helps :)


Problem 1 - QT editor buttons do not work when trying to edit a post, but work fine when creating a post.

Right I have in my profile Visual Editor checked off in my wordpress profile and also have use Quicktags Editor checked on in the forum options, this is what I believe to be the state that Andy mentions. However I have checked the Visual Editor on in my wordpress profile and I still get the same thing happening, unable to use the buttons in the Quicktag editor when editing a post but fine when creating a post. It would seem that you guys already know about this problem however so I will await the fix.


Problem 2 - Target code gets appended onto link code whenever a post is edited, sometime resulting in several iterations

Ok whenever I go to edit a post that contains an already existing link then the target=”_blank” gets added to the link code.

eg. If I create a post with a link to the homepage in it the code generated it as follows

<a href=”http://www.defconsoft.co.uk>Text</a>

If I then edit this post when the editor opens up ready for edit the code looks like this

<a href=”http://www.defconsoft.co.uk” target=”_blank”>Text</a>

If I save this and edit the post again, another iteration of target=”_blank” gets added for everytime I edit and save the post

<a href=”http://www.defconsoft.co.uk” target=”_blank” target=”_blank”>Text</a>


If you look at the source of the forum post here you can see this happening in the links within the posts. I am guessing this is probably an after effect of the 'double editor' issue perhaps?


Problem 3 - TinyMCE editor not even creating link code

Right problem three is not as important to me as I tend not to use the TinyMCE editor on my site, however when I did try to use it to see if it fixed this problem I could not actually get it to work in generating the link code.

I would type out my post, highlight the text I wished to place the link onto, clicked the Insert/edit link button, filled in the address, the target etc, clicked ok and the text did not show as a link (underlined etc). When I looked at the html for the link it came out looking like this.

This is a <a href>link</a> to another side

Or in other words it did not add in the web address or target that was entered into the pop up box upon clicking the link button. However now that I think about it this looks like it could be due to a double editor problem as well.


Now hopefully that explains it a little clearer and if your previous answers are still relevant then please disregard this post, I just wanted to make sure I was clear in reporting the issue so as not to cause any confusion.

Cheers

Defcon

PS. Hope this comes out formatted ok Embarassed


7:13 pm
15 Jun 2008


Mr Papa

Moderator

Arizona, USA

posts 1437

 
5

#1 nothing to do… fixed in next release…

#2 will log this as a bug for further research as I understand what you are saying and our filter routine is probably in error and probably not checking for existence already…

#3 still not sure I have this one… you are saying that you cannot insert links with tinymce? at all?  which editor do you use here?  asking cause your links came out fine…  I have tried on this site and all my sites running spf and have no issue entering links with tinymce…  does this happen with editing existing topics and new topics?

8:44 pm
15 Jun 2008


Mr Papa

Moderator

Arizona, USA

posts 1437

 
6

item #2 (duplicate nofollow or _blank) has been fixed and will be available in next version around end of the month…

9:23 pm
16 Jun 2008


Defcon

Member

posts 12

 
7

Great news on 1 and 2, will keep an eye out for the next version.


As for 3 yes links work fine through TinyMCE here, but on my site they just do not add in any of the information entered into the pop up box that appears when you click Insert/edit link button. It merely adds the a href at the start of the highlighted text and /a at the end on my site only, when i create a new post or edit one. Obviously that says to me that it is something conflicting within the plugins and nothing to do with SPF but I felt I should throw it out there just incase it was a known issue or something. When I get the time I will go through deactivating my plugins and see if I can track it down more.


Thanks for the quick work on 2. Good to see I wasn't going mad :)

Cheers

Defcon


1:54 am
17 Jun 2008


Mr Papa

Moderator

Arizona, USA

posts 1437

 
8

okay, please let us know what you find when you get the time…  I have not heard of this one before and would be interested if you did find a conflict…

3:31 pm
21 Jun 2008


Defcon

Member

posts 12

 
9

Ok reporting in with some good news I hope.

I just went back to test this again and start decativating plug ins to see what was causing any problems. I decided I would just activate the TinyMCE editor and give it one more try and to my surprise it bloody well worked!!

I did have a little trouble with the original problem post at first but then it just seemed to fix itself and allowed me to edit it and the links within it successfully. I am still waiting for the original reporting user to come back to me and tell me if it has fixed his problem but for now it looks all rosy on my end.

So that you know the only thing that has changed since the last time I tried it is that I have upgraded from Mysql 4.1.20 to Mysql 5.1.24-rc. Not sure if this was the fix to my issue however (it was more than likely me being stupid somewhere along the line like always).

3:38 pm
21 Jun 2008


Mr Papa

Moderator

Arizona, USA

posts 1437

 
10

glad to hear it sorted itself out…  you'd be surprised at the number of times stuff like that happened…  The mysql upgrade is a good deal for you, but it wouldnt have helped with tinymce..



Reply to Topic: Quicktags editor not working on edit post.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 10        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

10 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 1941

Posts: 13162

Members:

There are 916 members

There are 796 guests


Yellow Swordfish has made 5015 posts

Top Posters:

Mr Papa - 1437

-Radio- - 518

ovizii - 106

jfv - 82

RoseCitySister - 68

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)