I can not seem to be able to get a Property Set to override the default settings of a plugin settings. I have just tried to do this with TinyMCE and CodeMirror in Modx 2.0.0-pl. Basically, using the "Add Property Set" option and then modifying the copied settings seems to do absolutely nothing, even after using "clear cache." Yet, modifying the defaults works just fine. Is there an additional step I am missing to lock in or select the new property set?
Load the plugin for editing and look at the System Events tab. There’s a field there to set which property set will be used.
You’re kidding me! Where?
I just see a whole schwack of Events with checkboxes. Four of them being OnPropertySetSave/Remove/BeforeSave/BeforeRemove
But I don’t think that’s gonna do it.
I beg to differ.
Try double-clicking in the "Properties" column (just to the right of the Group Name -- if any) for any events that are checked.
I’m having the same problem, in my setup there are no system events checked by default… I checked four, and changed the property set to the one I want, but it still isn’t working… which system events need to be checked so that the tinymce editor uses my custom property set and not the default one?
The four system events I have checked are:
OnRichTextEditorInit, OnRichTextEditorRegister, OnBeforeManagerPageInit, OnRichTextBrowserInit
Brandon Booth
Freelance MODx specialist for hire: site construction, template conversion, snippet customization.
Lucidgreen.net Websites made simple.
I think I misunderstood the OP’s question.
AFAIK, there’s no way yet to specify a property set for a plugin to use because there’s no plugin tag to specify it in. Attaching the property set to the plugin doesn’t do it because you can attach more than one and the plugin wouldn’t know which one to use.
You can create (and automatically attach) a property set on the plugin’s properties tab, but until there’s a way to specify it (or the plugin code provides a setting for it) the property set won’t be used. I don’t have TinyMCE installed so I don’t know if it has a config option for specifying a property set, but I doubt it.
That means that for now, you need to edit the default properties, which unfortunately will probably be overwritten whenever you update the plugin.
The System Events that are checked have nothing to do with the properties used, BTW, they just determine which system events will trigger the execution of the plugin code. Checking ones not already checked when the plugin is installed will just slow things down and, possibly cause trouble.
I stand corrected. That’s good news (but more rewriting for me).
-
☆ A M B ☆
- 24,524 Posts
You know, eventually you’re going to have to release the book, then start a second edition. If you keep rewriting and waiting until you’re all caught up, you’ll never release. Revo is just too fast-moving a target.