Umbraco TinyMCE Editor in Custom Page - tinymce

I have website , developed using Umbraco CMS, SQL server and asp.net C#, and I have created custom modules to the website using asp.net,and I want to use Umbraco TinyMCE Editor in Custom Page, instead the .Net textbox , please if any body know send me or tell me about some URL help me to do that

Have a look at this blog post Umbraco 7: Use the rich text editor (TinyMCE) in a custom section
It tells you exactly how to reuse rich text editor (TinyMCE) in your custom page
Below are snippet from the blog post option 3:
In your View
<umb-property
property="property"
ng-repeat="property in properties">
<umb-editor model="property"></umb-editor>
</umb-property>
In your angular Controller
$scope.properties = [{
label: 'bodyText',
description: '',
view: 'rte',
config: {
editor: {}, // empty for now
hideLabel: true
}, hideLabel: true
}];

Related

Is there a way to integrate TinyMCE and EasyAdmin 3.x Bundle in Symfony 5.1

I'm trying to integrate stfalcon/TinymceBundle with EasyAdmin 3. I tried to create custom form template which works on Index and Details page, but not on the Edit/Create pages. I'm interested in knowing if someone realized that WYSIWYG in easyadmin3.
You just need to add to your DashboardController this:
public function configureCrud(): Crud
{
return Crud::new()
// add your form theme here
->addFormTheme('#BundleName/Form/wysiwyg_widget.html.twig')
;
}

TYPO3 8.7 EXT:form - Flash messages not shown in finisher until refresh page

I created a custom finisher for EXT:form. Among other things, my finisher has to show a flash message:
class CreateRequestActionFinisher extends \TYPO3\CMS\Form\Domain\Finishers\AbstractFinisher
{
// Validations ...
$flashMessage = $this->objectManager->get(
FlashMessage::class,
'Everything is fine.',
'Thanks',
\TYPO3\CMS\Core\Messaging\AbstractMessage::OK,
true
);
$this->finisherContext->getControllerContext()->getFlashMessageQueue()->addMessage($flashMessage);
}
My problem is that, in frontend, my flash message does not appear inmediately when I send my form. When I refresh my browser page (sending my form twice), my flash message appears. ¿What can I do? Thanks.
Workaround for TYPO3 v8.7:
I think this is based on this open issue regarding caching of flash messages. As a workaround, I currently use this additional finisher (last one in finisher array) to get it working properly:
-
options:
pageUid: '1' # uid of the page with the form
additionalParameters: 'no_cache=1'
identifier: Redirect
TYPO3 v9.5.6 and newer:
I think that this problem has now been solved because of this patch and a workaround is no longer necessary.

Load select options dynamically from external service in Touch UI dialog in AEM?

My problem is to load a select field in touch UI dialog with dynamic options. These options are coming from a external URL via webservices, I am consuming this RESTful services using url defined in one of our global javascript objects like
$.get(mec.serviceConfig.baseUrl + '/movies';
Please understand that the options are coming from third party webservice please do not mention datasource. Whenever I search for loading select options dynamically I get this tutorial
Link to Tutorial
This is is not what I want.
In classic UI it is easy with optionsProvider.
In touch UI I am trying to write a script that fetches the data from the external webservice via AJAX ON DIALOG load and set these options in the select field.
Is there any better easier approach ? Can someone please share code snippets?
you should create JS listener for your component.
$document.on("dialog-ready", function() {
// there you should find your select field
//for example
var language = $("[name='./language']").closest(".coral-Select");
//then append to your select field new options from your datasource
});
please see doc: Dynamically updating AEM TouchUI Dialog Select Fields

How to add an admin page for a custom module in Socialengine 4

How can we create an administration panel page for a custom module in social engine 4? I have not found any information regarding this over the INTERNET.
There is no direct method or functionality to create "administration panel page for a custom module". You need to do the programming (define Admin-controller and corresponding action) in your custom module.
You can take the reference from path: "application/modules/User/controllers/AdminManageController.php/indexAction()" and corresponding view file at "application/modules/User/views/scripts/admin-manage/index.tpl". This action display the "Manage Users" page at admin panel. You can do the programming according to your requirements.
Please put the moduleName, controllerName and actionName according to your requirement in below query and this will show in "Admin panel" >> "Plugins" section.
INSERT IGNORE INTO engine4_core_menuitems (name, module, label, plugin, params, menu, submenu, order) VALUES
('core_admin_main_plugins_moduleName', 'moduleName', 'moduleName', '', '{"route":"admin_default","module":"moduleName","controller":"controllerName", "action":"actionName"}', 'core_admin_main_plugins', '', 999);

Alfresco Share: Using ALfresco.Util.PopupManager in my customized Login page

I am working on customizing Alfresco Share for Business purpose. So I have Customized and Overridden the default login page. But now I want to show the pop up a message for invalid logins in the same way as ALfresco Share does. Going through the core files I found it makes use of ALfresco.Util.Popupmanager and Alfresco.Util.Message. So I included the alfresco.js file and copied the portion of the code from slingshot-login.ftl where it uses ALfresco.Util.Popupmanager.displayprompt, but when I deploy it, rendered the page and issued an invalid login I got the following error:
Alfresco.messages.global is null var globalMsg =
Alfresco.messages.global[p_messageId];
Kindly help.
What is your p_messageId?
This is should work:
Alfresco.util.PopupManager.displayPrompt(
{
text: "My message here"
});