Improvement: Per User Editor Type Setting
I'm using this as a wiki for my entire company, the developers and I would prefer to edit pages in markdown, whereas most of the other departments are not comfortable with markdown and much prefer the WYSIWYG editor.
It would be very useful to allow each user to set which kind of editor they would like to use.
An additional feature that would make this improvement better, would be the auto conversion from HTML to markdown when editing a page in markdown mode.
Would be really appreciated, keep up the good work Dan ;-) Thanks
Just to provide an update on this, PR #3387 has now been merged, which allows switching of editor type (If role permissions allow) from within the editor. The editor type is then saved against the page itself, and uses the system setting as a default. A preview can be seen here.
There are two choices when moving from WYSIWYG to Markdown:
- Stable - This retains existing HTML content in Markdown to avoid any potential functionality breakages or loss of formatting. This is similar to switching the global option now then re-opening a page for edit.
- Clean - This is a system-cleaned markdown output, which is much nicer but has potential for formatting loss and potential functionality breaks (Things depending on HTML attributes/IDs for example). This is the same logic that's currently used for exporting pages, written via the WYSIWYG editor, in markdown.
PR #3387 has been merged and is targeted for the next feature release (Likely v22.04). While this addition does not address this specific request (A user-level option/default) I think it does alleviate the pain point for this issue in most cases, and fundamentally meet the same goal.
I'd be interesting in hearing people's thoughts as to whether an additional user-level default is needed with this functionality change. While such a setting could be added, it would mean there's essentially three tiers of configuration for this editor option which could be confusing so I'd prefer not to introduce the complexity without strong and clear requirement.
Some may have expected this issue request to mean that a single page may open in markdown for one user, and WYSIWYG for another user (Without additional steps or interruption). This is not really viable within the current environment of BookStack and it's editors without potential problems. While an option could be added for this, for those that accept the consequences, it'd be adding a level of complication I would not really be happy with (At a codebase/logical level and in regards to impacting support/issue-handling).
With the above mentioned addition (Which has now been released) I'm going to close this off since much of the intent in this thread would have been for editor switching in general, and since we'd need to take a different approach now anyway. If the user-level default, as mentioned above, is desired, or if there's an alternative request, that can be opened as a new issue.
This issue has been about different users using different editor types for the same page, and the per page editor switch in PR #3387 doesn't touch that. In fact, I think it makes things more complex and error prone. I understand the complexities and consequences are not desirable for all, but at the same time this solution does not fix the issue for all.
OP mentions colleagues wanting to edit the same page while having strong different MD vs WYSIWYG preferences. Personally I find that when having a family book where we write pages about events, older folks only dare to contribute in WYSIWYG and the younger folks find it frustrating when they can't use MD. I don't see 'my' seniors going through those dialogs.
Perhaps this is not about the editor used, but about the underlying data (ground truth) being MD or HTML, set by the administrator. In MD mode, the WYSIWYG editor needs to be limited to a subset of features equal to that of MD, so that the function set is still friendly towards those not inclined to be tech-savvy. To quote @DDCMI:
I would much rather see a scaled down WYSIWYG that could match the markdown so that both could be used
Can we reopen this issue? All conversation in this issue prior to #3387 is still open and relevant. I'm not sure it makes sense to open a new issue and lose the historical interest.
Even if this doesn't get picked up anytime soon or at all, at least the dozens of duplicate and related issues that can be found through google still link to this open issue.
@Redsandro I won't re-open this since I believe the intended solution would have addressed the fundamental needs of many in this thread, or at least massively reduced friction, even if not specifically implemented as desired. With the switching functionality added, the context of conversation is now quite different.
Feel free to open a new feature request issue though, but please focus it in the fundamental requirement or user-need you have, and the benefits that would realistically achieve, rather than technical implementation idea/detail as provided above. This would allow exploration of alternatives where possible since, to be honest, it's very unlikely I'd be looking at supporting WYSIWYG/content-format variations any time soon.