-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GP-44377: Add custom civioffice form with ckeditor. #35
GP-44377: Add custom civioffice form with ckeditor. #35
Conversation
Would this be worth a PR to systopia/de.systopia.civioffice? |
@jensschuppe yes, probably a good addition! We're planning to add a few more quite Greenpeace-specific things to this form (and haven't tested the existing code yet), but the WYSIWYG-thing can probably be contributed upstream. The only tricky part is that the "Use PHPWord macros for token replacement" setting may vary if you have multiple document renderers, so we'd either need to switch between WYSIWYG and native textareas depending on the selected renderer, or just document the fact and gracefully remove any HTML added by the editor (might be a bit tricky). (We were able to just ignore this issue since we only have one renderer where the setting is always enabled.) |
… because only with this setting tokens are replaced with HTML-formatted token messages …? I'd say we should rather deprecate the regex replacement of tokens in favor of the PhpWord template processor and macros. |
That sounds like the better option indeed. I think the only real blocker for that (and for replacing everything with WYSIWYG) would be this issue: systopia/de.systopia.civioffice#30 It looks like there's been some prior work on fixing this in a PR. We can provide some funding if you/SYSTOPIA are interested in working on a fix for this? |
Thanks for the funding offer, I'll pass that on to @bjendres, @peth-systopia, @Fabian-SYSTOPIA - not sure why that approach in systopia/de.systopia.civioffice#30 has net been pursued any further. |
…hidden fields and vice versa.
No description provided.