Changelog for TinymceWrapper
++SURVIVE UPGRADES: duplicate edited chunks, retain names, add suffix, specify suffix in TinymceWrapper Plugin properties.
++CREATE PropertySets where applicable to protect your Plugin and Snippet alterations.
++DEPENDENCIES (optional): pdoTools / getResources, tagLister, MODX Resizer, NewsPublisher, MIGX getImageList
++ALWAYS START BY viewing the TinymceWrapper Demo Resource (it has everything enabled, frontend/backend)
++INCOMPATIBILITIES
FixedPre (and any Extra running on OnParseDocument) kills TinymceWrapper dead. Bruno17 has found a possible MODX glitch.
When our TinyJSONGallery is on, Extras Image+ and Gallery do a weird thing of outputting tv path at top of page - will address jako's suggestion before next winter
------------------------------
++CONFIGURE your RTE: valid_elements + valid_children = unlimited possibilities!!!
------------------------------
TinymceWrapper 2.3.1-pl (aka MIRANDA the beautiful)
---------------------------------
UPDATED plugin System Events
+ OnDocFormPrerender, OnTempFormPrerender,OnSnipFormPrerender,OnChunkFormPrerender,OnPluginFormPrerender,OnFileEditFormPrerender
+ fix your PropertySets!!!
UPDATED TinymceWrapper Resource with TinyJSONGallery Demo frontend/backend - sweet stuff!!!
UPDATED TinymceWrapperNPpublishButtonsTpl chunk - better error handling!!!
UPDATED modxMagicHoverLink.js
+ when you hover over resources in tree and search result, you can get SCHEME, relative, absolute, http, https
+ full support for Markdown
UPDATED elFinder to 2.1.11, protocol version: 2.1 -- jQuery/jQuery UI: 1.12.0/1.11.4
UPDATED Responsive FileManager to 9.10.1
UPDATED TinymceWrapperCodeMirror chunk (includes emmet) to function like its fraternal twin below.
ADDED TinymceWrapperAce chunk (includes emmet)
0. Ace up any fabled textarea within MODX... including quick edit/ create... beautiful and awesome, easy to customize!
1. Flawlessly auto detect resource language by content_type (mime), or set to fixed.
2. Auto detect elements according to static source extension, or set to fixed.
3. Auto detect file language according to file extension - or even in quick edit modal.
4. Change language on the fly while editing anything.
5. Go full screen.
6. Deactivate individual textareas at pleasure.
7. Use with RTE - well, you can, and why not?
8. Out of the box, Ace comes with lint for the major languages if not all, and a powerful set of keyboard control./
0-7 is applicable to TinymceWrapperCodeMirror
ADDED to TinyMCE RTE awesome homemade PLUGINS
+ twExoticMarkdownEditor.js - turn any TinyMCE instance into a full-blown beautiful Markdown Editor
+ twPreCodeManager.js - manage all pre/code tag content - just paste in your source code, and bam! you are on the road! Works for pure Markdown Syntax fenced blocks as well.
+ twAceEditor.js - just when you thought twCodeMirror.js was the best thing since sliced bacon, Ace comes in with its full horse power.
+ twCodeMirror.js - reworked to foot the bill (added close button and fontSize)
ADDED full Markdown support (COMPOSE AND PARSE in markdown, markdownExtra, parsedown, parsedownExtra)
SEE init chunk: sample.TinymceWrapperMarkdown
+ Transform your RTE into the most Perfect Pure Raw Markdown Editor ever - with Markdown floating toolbar, shortcuts, templates etc
+ USAGE (frontend/backend):
----------------------------------------
tinymce.init({
...
forced_root_block : "", //!important
force_br_newlines : true, //!important
force_p_newlines : false, //!important
valid_elements: "br", //!important
paste_as_text: true, //!important
external_plugins: {
twExoticMarkdownEditor: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twExoticMarkdownEditor.js", //!important
bubbleBar: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/tinymceBubbleBar.js",
twPreCodeManager: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twPreCodeManager.js",
modxMagicHoverLink: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/modxMagicHoverLink.js"
},
plugins: "paste contextmenu save searchreplace fullscreen",
toolbar: "fullscreen twPreCodeManager boldMD italicMD linkMD imageMD blockquoteMD codeMD numlistMD bullistMD tableMD undo redo code searchreplace bubbleBarOptionsButton",
menubar: false,
contextmenu: "fullscreen twPreCodeManager boldMD italicMD linkMD imageMD blockquoteMD codeMD numlistMD bullistMD tableMD undo redo code searchreplace template"
})
----------------------------------------
SEE snippet: TinymceWrapperMarkdown (use as Output Modifier)
+ Not just write beautifully in Markdown but parse the silly thing - so that you never have to write in RT format or see HTML ever again - oh yeaaa! copy all your github stuff over...
+ [[*content:TinymceWrapperMarkdown]] ... [[*myTV:TinymceWrapperMarkdown]] ... [[+placeholder:TinymceWrapperMarkdown]]
+ Modifier takes these options: TinymceWrapperMarkdown=`markdown,markdownE,parsedown,parsedownE` (default is parsedownE)
FIXED critical error in plugin that prevented creating of New Resources anywhere in the Manager (thanks to modxor)
FIXED typo in elfinderConnector snippet that rendered custom chunks useless (thanks to Dave Smith)
FIXED elfinder not supplying Image/File TV in TinyMagicPublisher
FIXED TinyJSONGallery.js
+ to load jQuery UI via https
+ ctrl+s now saves JSON and saves to MODX
FIXED imogen template file/image TV errors
+ MODX Manager phpthumb must be fed relative inks
+ MODX Manager phpthumb cannot parse MODX tags
---------------------------------------------------------------------------------------------------------------------------------------
To God be the glory. Enjoy!!!