Cleanup on uninstall

Created on 14 September 2016, about 8 years ago
Updated 13 November 2023, about 1 year ago

Uninstalling the module leaves behind dirty config in any filter format that codesnippet was enabled for. This means that coming back and enabling the module later will restore all previous config.

Expected behavior when uninstalling should be to clean up data from editor configuration.

When uninstalling the module:

  • CodeSnippet plugin settings should be removed from editor settings
  • CodeSnippet toolbar button should be removed from editor settings
πŸ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevinquillen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 7.4 & MySQL 5.7
    last update about 1 year ago
    Waiting for branch to pass
  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ
    +++ b/codesnippet.module
    @@ -53,3 +53,39 @@ function codesnippet_preprocess_html(&$variables) {
    +    if ($editor->getEditor() != 'ckeditor') {
    

    Can be strict compare.

    This is however not required, and I think it would be helpful to have this in, setting to rtbc based on the code in the patch.

Production build 0.71.5 2024