Opened 15 years ago

Closed 13 years ago

#1904 closed defect (wontfix)

[Editor2 / TableOperation-Plugin] inconsistent code generation (transitional vs. strict)

Reported by: guest Owned by: liucougar
Priority: high Milestone: 1.3
Component: Editor Version: 0.4
Keywords: editor css html-generation (transitional vs strict) Cc:
Blocked By: Blocking:

Description (last modified by bill)

I want to transform the content of the editor via XSLT into other formats. Therefore I need to parse the generated HTML with all the style information.

The problem: Without the TableOperation?-plugin being active, if table width/height are changed via drag&drop the followong code is generated

<table style='width: 214px;height: 38px'>...

When the TableOperation? plugin is active and the user changes e.g. alignment, then the HTML code is automatically changed to something like

<table align="center" width="214">...

This makes the parsing of the generated HTML much more complicated.

Therefore it would be great, if the editor and its standard-plugins would only generate STRICT HTML. This means: style information only via style-attributes. No deprecated attributes such as width, align, ...) and no deprecated tags such as <font size=...> Is this easy to change? Thanks for your help!

Attachments (1)

bFilters.js (4.3 KB) - added by guest 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by guest

Attachment: bFilters.js added

comment:1 Changed 15 years ago by b at cce dot ac dot nz

I just attached a couple of filters I made - I think they work well. The 'tidy_tags' and 'untidy_tags' are used as post and pre filters to allow the browser to edit with the deprecated tags, but the result (or html-mode view) is always styles. So far it just changes b and i to strong and em, and font tags to styles but I'm sure you could add more to it. -=Bruce Webster.

comment:2 Changed 15 years ago by guest

that looks like a possible workaround. how can i use these filters? I implemented the following method in my inherited editor, but it prevents my editor from loading:




getEditorContent: function(){

var content =; return tidy_tags(content);

}, ...

comment:3 Changed 15 years ago by liucougar

Milestone: 0.6

comment:4 Changed 14 years ago by bill

Milestone: 1.02.0

comment:5 Changed 13 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:6 Changed 13 years ago by bill

Description: modified (diff)
Resolution: wontfix
Status: newclosed

Realistically I don't see us putting this into the Editor code.

If someone wants to work on it we can reopen the ticket.

Note: See TracTickets for help on using tickets.