Modify

Opened 3 years ago

Last modified 3 years ago

#13937 new enhancement

change between wysiwyg to default editor makes WikiHtml content wrong.

Reported by: mgs1994@… Owned by: Jun Omae
Priority: normal Component: TracWysiwygPlugin
Severity: normal Keywords: WikiHtml
Cc: Trac Release: 1.4

Description

version: Trac 1.4.2

Changing the wysiwig editor to the default editor makes the contents strange.

The tested text is shown below.

default editor

{{{#!html
<h1 style="text-align: right; color: blue">HTML Test</h1>
}}}

If I change from the default editor to the wysiwig editor, the content changes as shown below.

default->wysiwyg->default

{{{#!html <h1 style="text-aligne: right; color: blue">HTML Test</h1> }}}

When I change the editor again, HTML changes to monospace.

default->wysiwyg->default->wysiwyg->default->wysiwyg

`#!html <h1 style="text-aligne: right; color: blue">HTML Test</h1> `

Is this intended? Or does the wysiwyg editor not support WikiHTML format?

I'll be waiting for your reply. Thank you :)

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Jun Omae

The wysiwyg editor doesn't support {{{#!processor ...}}} (WikiProcessors).

comment:2 in reply to:  1 ; Changed 3 years ago by mgs1994@…

Type: defectenhancement

Replying to Jun Omae:

The wysiwyg editor doesn't support {{{#!processor ...}}} (WikiProcessors).

I'm sorry for the late reply.

Thank you for letting me know wiki processor is not supported.

It's fine for me this plugin doesn't render wiki processors, macros, etc...

However, I don't think it's good to change the content unintentionally.

The example text below confirms that there is no problem changing the editor.

{{{
#!html
<h1>example</h1>
}}}

Could you modify the code so that the format can be applied as follows?

{{{text in braces without line break}}} 
-> `text in brace without line break` (monospace)

{{{
text in braces with linebreak
}}}
-> Preformatted Text

or

{{{text in braces without line break}}}
-> {{{text in braces without line break}}} (no contents changes)

Please let me know if it's difficult to apply this.

Thanks :)

comment:3 in reply to:  2 Changed 3 years ago by anonymous

{{{text in braces without line break}}} 
-> `text in brace without line break` (monospace)

{{{
text in braces with linebreak
}}}
-> Preformatted Text
{{{text in braces without line break}}} 
-> `text in brace without line break` (monospace)

{{{#!text
in braces with linebreak
}}}
-> render Preformatted Text or no render (like macros)

There may be a misunderstanding in my request, so I'm writing a new one.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Jun Omae.

Add Comment


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

 
Note: See TracTickets for help on using tickets.