theboxer / markdown-editor Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://theboxer.github.io/markdown-editor/
License: MIT License
Home Page: http://theboxer.github.io/markdown-editor/
License: MIT License
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.
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:
+
action.esc
would take you back to writing (or clicking off with the mouse)If it's possible move the scripts from head
into body
and make them async.
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...
Maybe a good alternative with WYSIWYG?
http://bevacqua.github.io/woofmark/
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
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.
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)
}
}
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.
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?
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..?
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!
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.
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
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.
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.
Hy, I can't select markdowneditor in wich_editor. is it support for modx 2.7 ?
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:
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.