Opened 7 years ago

# Include stylesheets in editor Wysiwyg-mode

Reported by: Owned by: Itamar Ostricher Itamar Ostricher normal CkEditorPlugin normal 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.

### comment:1 Changed 7 years ago by Franz

Resolution: → fixed new → 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 7 years ago by Franz

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 6 years ago by Itamar Ostricher

Priority: highest → normal fixed closed → 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.

### Modify Ticket

Change Properties