Moodle - How to disable some of atto editor toolbar buttons in a specific form? - moodle

I'm new to Moodle development, and I'm kinda stuck on a problem at the moment and couldn't find help on the Documentation nor the Moodle Forums:
I'm creating a local plugin, and in the plugin there's a form to add/edit some stuff that is added to the homepage. My problem is that I need the Atto editor for one of the fields for the image insertion among the text,but I need to disable the text formatting options (e.g. Align text). I tried this:
$editoroptions = [
'align' => ''
];
$mform->addElement('editor', 'description', get_string('desc', 'local_tutoriais'))->setValue($this->data('description'), $editoroptions);
but it doesn't work.
I did manage to disable the buttons I wanted going to the Atto editor options page on teh Site Administration, but that disables the button for all the Atto editors on the whole site.
Any ideas on how to disable these toolbar buttons only on the specific editor on my form? Thanks in advance for any answer!

Related

Can we access the code of dialog/popups of the plugins like 'link' provided by tinyMCE

I want to access the buttons of the dialog box which come up after clicking on insert/edit link button plugin in tinyMCE.
I want to add a custom save function to it. Is there any way to access those buttons?
I have tried to find a way in documentation, but no luck

web matrix and orchard cms editing the "Add Widget" Page

I am very new to the use of Orchard. I installed Web Matrix 3 and added Orchard CMS to it.
My question is :
On the admin Page from which i got access to everything on the new orchard cms site, i go to "widgets" and try to add a new "Html Widget".
it redirects me to an "Add Widget" page with input boxes for title, date and other things, and also an text editor in which i can put anything i want.
I want to be able to put an image there and then be able to drag it around the editor container...so when i save this widget the image will stay on the position that i dragged it to inside the editor.
How and / or Where can i do that?
Thanks in advance!
It depends on what editor you use for the HTML body. Default it uses the TinyMCE editor, which provides an 'Add image' button to insert an image:
When you click this button you can insert an image from the image gallery of your Orchard Media section.

How to add a single menu item in wordpress to my plugin

I am trying to create my first wordpress plugin and I want to add a new "menu item" in the wordpress default menu bar. So when I click that menu item, the html form need to be shown by my plugin.
comparing to Joomla, in joomla it has views in "components" so I can easily create a new menu item, and assign a view as I want. In wordpress how do I do that for a plugin?
Please help. Thanks
I recommend that for your form for the front end, make a shortcode that will render your form. Then people can create a page (which gets you your menu item) and put your form on the page, optionally with some text / images above or below the form. This is better than trying to insert a "page" into the menu and somehow getting it where your plugin's users want it to go :)
For the admin side, use the admin menu functions.

how to manage tabindex in joomla chronoforms

hi i am using joomla for my one site can u help me set to default tab in chronoform.
i put this code in this but still it not set cursor in text box.
If you are building your form using the form wizard, you will need to go back in to the form code and manually add the tabindex yourself. Be warned that editing the form code will cause issues if you try to use the wizard to go in and edit the form again. Any changes you make will be lost when you use the wizard and will have to be reapplied when you are done.

is there any editable combobox in GWT?

I want to add editable combo box in GWT , so please tell me the solution ?
Try the Advanced GWT Components, specifically
org.gwt.advanced.client.ui.widget.ComboBox
You can see them in action at the demo page here, just select the Text & Button Widgets tab and have look at the source code behind it.