Giter VIP home page Giter VIP logo

markdown-editor's People

Contributors

netprophet avatar rthrash avatar theboxer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdown-editor's Issues

Markdown Editor is converting Modx code

Markdown Editor is parsing Modx code inside the square brackets so that for example:

[[!pdoResources? &parents=[[*id]]&where={"template:=":"5"}&tpl=EventPost]]

becomes:

<p>[[!pdoResources? & amp;parents=[[*id]]& amp;where={& quot;template:=& quot;:& quot;5& quot;}& amp;tpl=EventPost]]</p>

This means the the &where instruction does not work. The same is true of may other bits of Modx code that are rendered inoperative by Markdown Editor converting them into HTML codes.

Surely, anything between double square brackets should not be being converted by Markdown Editor.

Accessibility Improvements for Inserting Files

As a user that relies on keyboard entry or assistive devices, I would like to be able to insert files/images only using my keyboard so that I can stay focused on creating content and not looking up arcane paths and formatting choices.

Inserting an image currently requires keyboard and mouse interaction, or knowing somewhat of an arcane format. It would be convenient and more accessible to allow making the same choices purely from a keyboard. Possibly:

  • When on a newline, a keyboard combination (tbd) allows for triggering the + action.
  • Arrow keys would navigate between the options (right and left arrow keys)
  • esc would take you back to writing (or clicking off with the mouse)

System Setting to scope plugin

markdown_init_where
{"template:=":"4", "parent:IN":"1,2,3,10"}

Use cases:
RTE for pages, MDE for blog. Or vice versa.

Not sure if which_editor setting should be overridden with the above, or the other way around...

How to render newlines as <br>

Remarkable has the option to render newlines in paragraphs as breaks (see demo and docs.).

I was looking for the right place to add this setting in Markdown Editor, but cannot find it.. Can it be done? And if so: where to look?

A system setting for this would be also be nice of course :)

Drag and drop upload doesn't work

Just tried this on two blank MODX installs and the image uploader doesn't work out of the box. The crop box does pop up, but after cropping an error is displayed "No image".

Environment:
MODX Version 2.3.3-pl
PHP Version 5.5.28
Compress CSS/JS disabled
/assets/u folder created

GFM reference syntax added to the status bar

As a non-professional user of Markdown, I would like to have a quick reference to its syntax so that I don't have to look it up and can stay in the flow of writing.

It would be convenient to have a quick reference to GFM syntax in the footer bar area.

error No file uploaded when plugin enabled

on save 2 ajax request was executed 1 to assets/components/markdowneditor/connector.php and return success
and the second to connectors/index.php return

<br />
<b>Notice</b>:  No file uploaded in <b>Unknown</b> on line <b>0</b><br />
{"success":true,"message":"","total":0,"data":[],.........}

the var_dump of $_FILES show this

array(1) {
  ["md_file_ext-gen269"]=>
  array(5) {
    ["name"]=>
    string(0) ""
    ["type"]=>
    string(0) ""
    ["tmp_name"]=>
    string(0) ""
    ["error"]=>
    int(4)
    ["size"]=>
    int(0)
  }
}

Allow Choosing Assets in Full Screen

When editing in full screen mode there is no obvious/convenient way to insert images you have already uploaded to the system. One approach would be to add another circle-action to the existing list along side camera/upload and embed URL. This would present a pop-up media browser window like an image or file TV.

Other MODX extras use jQuery too

MarkdownEditor uses a combined dependencies.js with a jQuery version inside that kills all jQuery scripts registered before. Image+ uses another jQuery version. The later included file wins. See: Jako/ImagePlus#7 (comment)

I really should switch to Cropper which is way better than jCrop and update jQuery to 2.x but then we have the same situation as before, because both scripts are included (they have different folder names and so they have different file names for MODX).

So it is more the fault of the MODX regClientScript system that does not allow dependencies and version checks, but how could Image+ and MarkdownEditor live beneath each other? Is there any mechanism that avoids the issue?

[Error] Can't find autoload.php after installation with GPM

Fatal error: require_once(): Failed opening required '/Users/Hugo/Localhost/bootqamp-pkg2/packages/markdown/core/components/markdowneditor/model/vendor/autoload.php' (include_path='.:') in /Users/Hugo/Localhost/bootqamp-pkg2/packages/markdown/core/components/markdowneditor/model/markdowneditor/markdowneditor.class.php on line 127

Vendor folder is not supposed to be there I think..?

Markdown hides Buttons/scrolling in Collections View

Hello,
ive got Collections and Markdown Editor installed. In this way, you can't scroll inside the Collections View and the save buttons are hidden.

Uncaught TypeError: Cannot read property 'dom' of null

Hope we can fix it. Thanks!

Add Markdown Editor on chunks

It will be good to have such opportunity on chunks too, because they contain pure HTML code, so it equals content side.

I'll look at code of repository for adding feature.

Turns all my pages blank.

Just installed this on Modx and it instantly turned all my web pages blank. Not a great start. Anyone have a fix for this?

Thanks

Support VersionX versioning

As a content author, I want my Markdown content to be stored by VersionX so that I can make mistakes and recover fully and gracefully.

Lingua support

Markdown Editor isn't usable unless primary language is selected while editing a resource.
I am using Lingua as a multi language solution for modx and sadly when I select a language the editor disappears.

Additionally there is a bug when the primary language is selected: The "select file or drag & drop to upload" text at the lower left of the editor is displayed 3 times andwhen I save the resource it keeps copying itself.

not working on 2.7 ?

Hy, I can't select markdowneditor in wich_editor. is it support for modx 2.7 ?

Parse error: syntax error, unexpected T_USE

Getting the following error when attempting to edit a resource:

Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in edited-server-path/core/components/markdowneditor/model/markdowneditor/oEmbed/Service/Essence.php on line 10

Here's my environment:

  • MODX 2.3.1
  • Markdown Editor 1.0.0-pl
  • Ace 1.5.0-pl (currently set as default code editor in system settings)
  • PHP 5.3.29
  • MySQL 5.1.72

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.