Giter Club home page Giter Club logo

simplemde's People

Contributors

ademarco avatar bircher avatar briangilbert avatar otarza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simplemde's Issues

Image upload

Are there any plans to support file/image upload + file usage filter, like with CKEditor/IMCE/Media?

Drupal 9 Support

The module currently doesn't support Drupal 9.

I've done a quick scan of the module using drupal-check and there were no deprecations returned so adding the following to the modules info.yml file should make it possible to install on Drupal 9.

core_version_requirement: ^8 || ^9

Fix "no matching package found" error

While trying to install this module using composer I'm getting following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for drupal/simplemde 1.0-alpha3 -> satisfiable by drupal/simplemde[1.0.0-alpha3].
    - drupal/simplemde 1.0.0-alpha3 requires sparksuite/simplemde-markdown-editor 1.11.2 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Steps to reproduce:

  1. Add "drupal/simplemde": "1.0-alpha3", to your composer.json;
  2. Run composer update;

I'm not sure what is causing this.

Workaround solution:

Add simplemde-markdown-editor in repositories of your composer.json file:

"repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "package",
            "package": {
                "name": "sparksuite/simplemde-markdown-editor",
                "version": "1.11.2",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/sparksuite/simplemde-markdown-editor/archive/1.11.2.zip",
                    "type": "zip"
                }
            }
        }
    ],

Even workaround solution prevents the error, module itself still can't be enabled if you don't add "drupal/markdown": "1.2", as a dependency under your main composer.json, but this might be scope of another issue?

Installing with composer

When I try to install with composer on Drupal 8 I get this error.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/simplemde 1.0.0-alpha1 requires nextstepwebs/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - drupal/simplemde 1.0.0-alpha2 requires nextstepwebs/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - drupal/simplemde 1.0.0-alpha3 requires sparksuite/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - drupal/simplemde 1.0.0-alpha1 requires nextstepwebs/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - drupal/simplemde 1.0.0-alpha2 requires nextstepwebs/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - drupal/simplemde 1.0.0-alpha3 requires sparksuite/simplemde-markdown-editor 1.11.2 -> no matching package found.
    - Installation request for drupal/simplemde ^1.0@alpha -> satisfiable by drupal/simplemde[1.0.0-alpha3, 1.0.0-alpha2, 1
.0.0-alpha1].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Can you help me get this installed on my Drupal 8 site?

404 Errors on Pantheon when Loading Editor

For some reason, I cannot get the JS and CSS of the editor to load for my Pantheon D8 site using this module.

I get 404 errors on:

  • /libraries/simplemde-markdown-editor/dist/simplemde.min.css?pxjm6d
  • /libraries/simplemde-markdown-editor/dist/simplemde.min.js?v=1.11.2

I am running Drupal 8.7.7, and the module was installed with Composer. I added the repository declaration for sparksuite/simplemde-markdown-editor to the site's top-level composer.json in order to get the module installed:

        {
            "extra": "This is a workaround for https://github.com/nuvoleweb/simplemde/issues/4.",
            "type": "package",
            "package": {
                "name": "sparksuite/simplemde-markdown-editor",
                "version": "1.11.2",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/sparksuite/simplemde-markdown-editor/archive/1.11.2.zip",
                    "type": "zip"
                }
            }
        }

In addition, I can see that the commit to Pantheon included:

composer.json
composer.lock
libraries/simplemde-markdown-editor/.eslintrc
libraries/simplemde-markdown-editor/.gitignore
libraries/simplemde-markdown-editor/.travis.yml
libraries/simplemde-markdown-editor/CONTRIBUTING.md
libraries/simplemde-markdown-editor/LICENSE
libraries/simplemde-markdown-editor/README.md
libraries/simplemde-markdown-editor/bower.json
libraries/simplemde-markdown-editor/debug/simplemde.css
libraries/simplemde-markdown-editor/debug/simplemde.debug.js
libraries/simplemde-markdown-editor/debug/simplemde.js
libraries/simplemde-markdown-editor/dist/simplemde.min.css
libraries/simplemde-markdown-editor/dist/simplemde.min.js
libraries/simplemde-markdown-editor/gulpfile.js
libraries/simplemde-markdown-editor/package.json
libraries/simplemde-markdown-editor/src/css/simplemde.css
libraries/simplemde-markdown-editor/src/js/codemirror/tablist.js
libraries/simplemde-markdown-editor/src/js/simplemde.js
vendor/composer/autoload_classmap.php
vendor/composer/autoload_psr4.php
vendor/composer/autoload_static.php
vendor/composer/installed.json
web/modules/contrib/simplemde/.gitignore
web/modules/contrib/simplemde/.travis.yml
web/modules/contrib/simplemde/CHANGELOG.md
web/modules/contrib/simplemde/LICENSE.txt
web/modules/contrib/simplemde/README.md
web/modules/contrib/simplemde/composer.json
web/modules/contrib/simplemde/css/simplemde.css
web/modules/contrib/simplemde/js/drupal.simplemde.js
web/modules/contrib/simplemde/scripts/pre-push.sh
web/modules/contrib/simplemde/simplemde.info.yml
web/modules/contrib/simplemde/simplemde.libraries.yml
web/modules/contrib/simplemde/simplemde.module
web/modules/contrib/simplemde/src/Plugin/Editor/SimpleMDE.php

So... not sure why the JS and CSS aren't loading.

Feature request: support media library

Would be great if it's possible to support the media library in Drupal core. The media library module itself provided a ckeditor plugin to make ckeditor work with it. Do not know how o make it work with this module. The library sparksuite/simplemde-markdown-editor allows adding custom buttons, maybe we can start with adding a button for media library first.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.