Ticket #8852 (reopened enhancement)

Opened 2 years ago

Last modified 1 year ago

Include stylesheets in editor Wysiwyg-mode

Reported by: itamarost Assigned to: itamarost
Priority: normal Component: CkEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Currently, the stylesheets are not propagated into the editor preview, so elements that should be rendered in some manner because of CSS are not rendered correctly (e.g. <span class="underline"> is not rendered with underline in editor.

Attachments

Change History

11/16/11 08:28:10 changed by framay

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

(In [10922]) fixes #8850, #8851, #8852: implemented a lot of new functionalities, so named this version 1.1dev

(in reply to: ↑ description ) 11/16/11 08:42:57 changed by framay

Replying to itamarost:

CSS are not rendered correctly (e.g. <span class="underline"> is not rendered with underline in editor.

This is fixed by replacing the HTML-Code <span class="underline"> by tag u in __init__.py. See Google-Groups for the discussion why Trac uses <span class="underline"> instead of tag u.

12/10/11 20:41:01 changed by itamarost

  • status changed from closed to reopened.
  • priority changed from highest to normal.
  • resolution deleted.

This is not what I meant in this ticket. The underline class was an example, not the main issue.

The CkEditorPlugin should be a Wysiwyg for TracWiki editing - this means that when you edit your page, the rendering in the editor should be the same as the rendering outside the editor (the style of href's, the font size of headings, the layout of tables, etc.)

In order to achieve this, the plugin should inject the actual stylesheets used for Trac rendering into the Wysiwyg editor.


Add/Change #8852 (Include stylesheets in editor Wysiwyg-mode)




Change Properties
Action