taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

Feature Request: Use tabs to switch between modes #95

Closed mmundi72 closed 3 years ago

mmundi72 commented 4 years ago

It would be great to place the current links Textile, Visual Editor, Preview above the editor using the newly introduced tabs in issues. This suits better with the rest of Redmine.

These links: image

Place them above editor similar to the issues history tabs: image

picman commented 3 years ago

Yes, the Visual editor should be integrated into the existing tabs between Edit and Preview. The present solution with links below the edit control is ugly. image

albrechtd commented 3 years ago

Furthermore, it would be great if the preview background would be white instead of light gray, as this confuses some of my users (“Why does the result look so different from the preview?”). It can be tweaked easily be changing the value #fafafa to #ffffff in the stylesheet css, but it's overwritten by updates…

albrechtd commented 3 years ago

After a lot of trial-and-error (and error and error and error 😉) on Redmine 4.0.7 installed from Buster Backports, I think I found a solution using this patch against version 0.20.0. redmine_wysiwyg_editor-with-tabs.zip At least, using Firefox it now looks as the familiar Redmine interface, just with the additional tab. However, I have no idea if it works with other browsers or with other versions of Redmine, degrades your Karma or has other evil side effects. But it might be a starting point. hack-textile hack-wysiwyg hack-preview

picman commented 3 years ago

Excellent! I've tested it with the current develop branch and can confirm that it simply works. I've fixed a problem that the main view is scrolling when clicking on tabs and created a pull request https://github.com/taqueci/redmine_wysiwyg_editor/pull/116 for easier integration.

taqueci commented 3 years ago

Merged.

taqueci commented 3 years ago

Please enable Use tabs for mode switch in plugin setting.