nuvoleweb / simplemde Goto Github PK
View Code? Open in Web Editor NEWDrupal integration for SimpleMDE Markdown Editor https://www.drupal.org/project/simplemde
License: GNU General Public License v2.0
Drupal integration for SimpleMDE Markdown Editor https://www.drupal.org/project/simplemde
License: GNU General Public License v2.0
Are there any plans to support file/image upload + file usage filter, like with CKEditor/IMCE/Media?
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
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:
"drupal/simplemde": "1.0-alpha3",
to your composer.json;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?
Looks like NextStepWebs/simplemde-markdown-editor
is now under new name sparksuite/simplemde-markdown-editor
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?
As Readme of sparksuite/simplemde-markdown-editor says: in order to support syntax highlighting for different languages we need to add dependency to highlight.js and set codeSyntaxHighlighting
to true under renderingConfig
.
Tasks:
Code syntax Highlighting
option to text formats configurations, so admins will be able to enable this feature.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:
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.