RE: Dave Smith
Thanks for the feedback.
I think you missed the alert that went out just before post (scroll up a bit). I can also assure you that the issue is, this time, not of your doing
https://forums.modx.com/thread/97694/support-comments-for-tinymcewrapper?page=25#dis-post-542347
To continue to use said plugin you must downgrade one notch (until I figure out the precise issue)
From: https://cdn.tinymce.com/4/tinymce.min.js
To: https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.3.12/tinymce.min.js
If using TinymceWrapper :
1. change CDN link in plugin's custom property set tinySrc
2. or remove modxMagicHoverLink.js from TinymceWrapperCommonCode chunk
Cheers!
#1
With 'useAceOrCodeMirrorEveryWhere' enabled, when I create a new child in a Collection all the property set settings seem to be ignored.
You will have noticed by now that Ace/CodeMirror have nothing to do with the TW plugin properties save for only two connections: their ignition and fancy theme dropdown (for mere convenience)
Find chunk
TinymceWrapperAce preferably your own suffixed chunk...
Chunk Description
TinymceWrapperAce is a chunk to let any whoever dominate the initialization of the powerful Ace code editor.
This tiny config can work anywhere and with anything in MODX...
And the content ...
aceTextareasIDorCLASS = [
{
"name": "introtext",
"selector": "#modx-resource-introtext",
"mode": "html",
"wrap": "free",
"maxHeightLines": "textarea",
},
{
"name": "description",
"selector": "#modx-resource-description",
"mode": "html",
"wrap": "free",
"maxHeightLines": "textarea"
},
#2
Creating new resources should not be different from creating other native MODX resources
Is the new child in Collections Rich Text enabled by default?
Please play with these options
activateAceOrCodeMirrorOnRichTextPrevent Ace or CodeMirror from ever firing when Rich Text is turned on for a particular resource. Respects activateAceOrCodeMirrorOnNewResource and system richtext_default
activateAceOrCodeMirrorOnNewResourceNew Resources have the option of a code editor. Respects activateAceOrCodeMirrorOnRichText
newResourcesIf you set richtext_default in System Settings, new resources will have the RTE clicked automatically.
Do you want TinyMCE to load also, automatically, for the new resource?
#3
Also, when I click on the '<>' button in the MCE toolbar to get the Ace editor popup, is there any particular reason this window has a static size, and can't be maximised? When quick editing chunks etc. it works in a more flexible way. It also makes me wonder why I can't just switch any given field into the Ace editor mode without the need for a popup. The mode where the toolbar is replaced with Ace's own buttons in the top right corner, with the little flag to tell you which code highlighter is activated.
Note two things
1.
TinymceWrapperAce chunk gives you awesome full-on kitchen-sink state-of-the-art never-been-seen-before implementation of Ace within MODX, as MODX. It enables you to transform your textareas: from resources, elements, files, you name it!
2.
twAceEditor.js < > is a TinyMCE plugin that has absolutely nothing to do with MODX. Even WordPressers can use that plugin immediately! I designed this plugin to be light, for a start. In future, you might see those cute funtions (toolbar, maximize) that you are enjoying now in MODX.
It is designed to pop up but default (you can change the TinyMCE setting to inline), and not replace the existing content area, for many reasons many which I have now forgotten
This is the full setting of how to tame this plugin:
https://github.com/donShakespeare/twAceEditor
Thanks for being an intelligent user, you highly encourage me not to fall into despair;)
Cheers