Modify

Opened 4 years ago

Last modified 3 years ago

#8852 reopened enhancement

Include stylesheets in editor Wysiwyg-mode

Reported by: itamarost Owned by: 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 (0)

Change History (3)

comment:1 Changed 3 years ago by framay

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 in reply to: ↑ description Changed 3 years ago 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.

comment:3 Changed 3 years ago by itamarost

  • Priority changed from highest to normal
  • Resolution fixed deleted
  • Status changed from closed to reopened

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 Comment

Modify Ticket

Action
as reopened The owner will remain itamarost.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.