Ticket #5084 (closed defect: invalid)

Opened 1 year ago

Last modified 1 year ago

Non-WYSIWYG post editor broken in 2.3

Reported by: bglickstein Assigned to: anonymous
Priority: normal Milestone:
Component: General Version: 2.3
Severity: critical Keywords: noTinyMCE
Cc: bobg@emphatic.com

Description

I upgraded to 2.3 yesterday and discovered that HTML elements and entities in blog posts get an extra layer of entity-encoding before being presented in the non-WYSIWYG edit box. If you click "Save," the encoding remains and they're not HTML elements anymore. In other words, <b>this</b> becomes &lt;b&rt;this&lt;/b&rt; (and then renders in the blog as <b>this</b> when what I really wanted was this).

Attachments

blogpost (1.2 kB) - added by bglickstein on 09/27/07 02:55:32.
Procmail-callable interface that publishes mail to your blog

Change History

09/26/07 17:42:04 changed by johnbillion

  • component changed from General to Administration.

I'm unable to reproduce this. bglickstein, can you disable all your plugins and try again?

If the problerm persists, please supply a few more details such as PHP and MySQL versions, browser details, and whether you're using the Code tab of the WYSIWYG or just the non-WYSIWYG editor.

09/26/07 23:33:08 changed by ryan

  • status changed from new to closed.
  • resolution set to invalid.

Markup placed in the "Visual" tab of the editor will encoded. You have to switch to the "Code" tab to enter markup that you do not want encoded. This is how it has worked for several releases and is the way it still behaves in my tests. Marking ticket as invalid. Re-open with more information if I have misunderstood the problem.

09/27/07 00:17:38 changed by foolswisdom

  • milestone deleted.

09/27/07 00:32:48 changed by raptorNL

  • priority changed from highest omg bbq to high.
  • status changed from closed to reopened.
  • resolution deleted.

Reopening this ticket.

Non-WYSIWYG editor converts my HTML entities to their plain charachter counterparts. Say I want to include some HTML code as an example in my page, i.e.

&lt;span&gt;

When I save that, it's OK. But when I then edit it, the entities are gone and it's just the unescaped HTML tag:

<span>

Strangely enough, this happens only in pages. In posts, HTML entities are preserved as they should.

09/27/07 00:53:16 changed by bglickstein

For the record, I have the "Use the visual editor when writing" option turned off in my profile, so I don't see "Code" and "Visual" tabs.

Also: the original content of the post I later tried to edit in the UI was added via the XML-RPC interface; my PHP is 5.1.6; my MySQL is 5.0.27; my browser is Firefox 2.0.0.7.

09/27/07 02:11:13 changed by foolswisdom

  • status changed from reopened to closed.
  • resolution set to fixed.

Thank you for reporting this problem. I have created a new ticket for this issue that clearly demonstrates the issue #5088. If your issue not as described in #5088 then please create another ticket with similar detailed information.

09/27/07 02:11:18 changed by foolswisdom

  • status changed from closed to reopened.
  • resolution deleted.

09/27/07 02:11:23 changed by foolswisdom

  • status changed from reopened to closed.
  • resolution set to duplicate.

09/27/07 02:55:32 changed by bglickstein

  • attachment blogpost added.

Procmail-callable interface that publishes mail to your blog

(follow-up: ↓ 10 ) 09/27/07 03:01:20 changed by bglickstein

  • status changed from closed to reopened.
  • cc set to bobg@emphatic.com.
  • component changed from Administration to General.
  • milestone set to 2.3.1.
  • keywords changed from editor to noTinyMCE.
  • resolution deleted.

As requested in issue #5088, I am reopening this bug (which appears related to that one but is the reverse case) with more detail.

The XML-RPC client I used to post the text was a Perl script of my own design, invoked from procmail, so I can mail posts to my blog. It uses the Net::Blogger::* API from CPAN. I am attaching it hereto and incidentally contributing it to anyone else who'd like to use it.

My version of Perl is 5.8.8 and my version of Net::Blogger is 1.0.

However, in testing I discovered that it is not necessary to use XML-RPC to reproduce this problem. Simply start writing a post with the non-WYSIWYG editor (i.e., with your "Use the visual editor when writing" profile option turned off) containing something simple like:

<b>test</b>

Now "Save and continue editing." Presto: the post body now contains

&lt;b&rt;test&lt;/b&rt;

and you've reproduced the bug.

(in reply to: ↑ 9 ) 09/27/07 04:23:12 changed by foolswisdom

Replying to bglickstein:

However, in testing I discovered that it is not necessary to use XML-RPC to reproduce this problem. Simply start writing a post with the non-WYSIWYG editor (i.e., with your "Use the visual editor when writing" profile option turned off) containing something simple like: {{{ <b>test</b> }}} Now "Save and continue editing." Presto: the post body now contains {{{ &lt;b&rt;test&lt;/b&rt; }}} and you've reproduced the bug.

I can't reproduce the bug in this manner, so there seems to be a detail missing.

09/27/07 05:37:53 changed by bglickstein

OK, further details: my active plugins are Adsense-Deluxe, Akismet, Snap Preview Anywhere, Wordpress Autolink, WordPress XHTML validator, and wp-cache. After disabling all of them, I could no longer reproduce the bug.

I reenabled them one by one. It looks like the culprit is Wordpress Autolink. Disabling it makes the bug disappear.

I don't know whether this is a bug in Autolink or whether Autolink is tickling a bug in Wordpress.

09/27/07 05:44:22 changed by RuddO

Can you guys please verify? I haven't had time to upgrade to 2.3 yet

09/27/07 08:02:37 changed by johnbillion

  • priority changed from high to normal.
  • status changed from reopened to closed.
  • resolution set to invalid.
  • milestone deleted.

Closing as invalid as per bglickstein's last comment. Culprit was WordPress Autolink.