Change document in CKEditor Letters without recreating editor object - ckeditor

Is there a method to change the document being edited by Letters without destroying the editor and constructing it again?

It is not possible in the current version of Letters.
You need to ensure that you will not overwrite the document for other users when you collaborate with them. It means that you need to disconnect from the current document and connect to the new document. In the current version of the CKEditor 5 collaboration plugin (and in Letters) the editor connects to the document during initialization. This is why you need to destroy and create the editor to connect to the new document.

Related

Update user interface suggestions

I have an intranet system that uses the DHTMLX UI Framework as user interface, but I'm looking for more modern interfaces that suits the current interface. The current version of DHTMLX I'm using only supports jQuery 1.x, that is a serious security problem. I already asked to update the version using the same UI, but there is a lack of documentation on its updated product. I.e., if I Googled for specific method or some way to run specific task or behavior, I'm always being redirected to elder documentation, or it simply doesn't exist!
I sketched here the current main UI I have: https://dhtmlx.com/docs/products/visualDesigner/live/?preview=true&id=967kh4
Explaining the behaviors: I have the layout separated by tabs, but the Tab 0 is the main record, and "sub tabs" are records according the selected row on grid of Tab 0. If there is no selected row, all sub tabs are disabled by default. If I add a new record on specific tab, automatically it adds a new row to equivalent tab.
This front is not so usual, but allows user previewing quickly the dependencies.
Question is... Do some of you have something similar to this layout? I'm disposing layouts that has to click on the main record, have to load an entire screen just to preview its dependencies.
The image below shows the current system interface
Any suggestion will be appreciated.

How do I update upload a new version of my widget in Oracle Commerce Cloud?

I'm able to upload a widget as part of a new extension, but if I want to make changes to that widget and upload a new version I'm not able to. When I try to re-upload the widget, its throwing:
Extension was not installed The following errors were found:
Widget WidgetTemplate already exists.
Extension ID already exists.
Where WidgetTemplate is the name of my widget. I've updated the version in ext.json but it made no difference. I'm able to edit the css, js, and template through the design section, but im not able to add elements for example.
Is there a way to upload a new version of an existing widget, or do I need to create a new extension for each new widget version?
You have to first deactivate the widget which you want to change and then reupload the widget
You can go for steps
1)Select Setting tab
2)Click Extension
from there go for installed section then search the widget you want
to deactivate
and then after deactivating it will ask for delete so after doing these two steps upload the widget with your changes and then drag that were you want to apply
Elements are uploaded in a separate way.
You can either create a stand-alone element or widget-specific element.
Follow the below link to understand how to create and upload an element
Creating and uploading and element in OCC
For reuploading a widget you need to first deactivate then delete the previous widget from settings>extensions.
Also, if you don't want to delete the previously uploaded widget then change the widget name and update the same in widget.json of it and create a new extension id with a different name. [IMP: NAMES MUST SYNC WITH EACH OTHER]
Hope this answer is quite helpful. :)

How could we replace the primary image of the default entity 'User' in Dynamics CRM?

I need help in changing the primary image and replacing it with a new icon for certain default entities in Dynamics CRM .
This is only doable for custom entities as far as I'm aware. You do have two potential options
1) If you're running On Premise then you can go into the folder structure on the CRM server. Find where CRM is installed (I can't recall the directory) and dig around in the CRMWeb folder looking for the entity icons. If you replace the images and do an iisreset that could work.
2) Failing that, add the entity you want to change the icon for to an unmanaged solution and export it. Extract the solution file and open customizations.xml in a text editor. Look under the Entity element for anything relating to the icon. You should see a relative path url to the file on the server. If you have a web resource you want to use as an icon you can replace the url with "$webresource:[uniquenameoficon]" without the quotes. E.g. "$webresource:new_icon.png"

How to create a batch script to find and replace pages within multiple documents

I have created several Word Templates and Forms (over 100). If any form in a template changes, all like forms in other templates must be updated as well. For example, if another field is added to the form, then I need to update 100 templates with this same added field. So, let's say the templates are saved according to client:
Q://Master Templates/Client Name/Client Template
(Note, the client template may have about 30 or more pages - like a contract and the form might be page 29 in this client, but another client may have 60 pages and the form might be page 20).
Then, there is another folder where the form is a standalone form, or part of a group of forms that are used together. Example:
Q://Master forms/Group Forms
Q://Master forms/Standalone Forms
First question: would it make sense to have a batch script that finds the form in each template or each folder; and then should the script find add replace the extra field, or does it make more sense to replace the entire form in the templates?
Second question: how would / could I do this? Is there a way to write the script to replace the form in each location based on the example above?
Third question: what types of security risks or problems such a batch script can create for an enterprise-wide network?
Thank you in advance for your support.
Probably the best answer is to use the Developer ribbon in Word. Within Word, File > Options > Customize Ribbon > Check the Developer item under Main Tabs.
Next, open one template needing changes and click Record Macro then make your changes.
Now you can open (In Windows Explorer, ctrl + click then right click to open multiple files) the other templates needing the changes and replay the macro to make those changes.
You could even record opening another document then just add the VBA code to open the other templates and play back the recorded macro to make the changes.
Here's the VBA to open a document in Word.
ChangeFileOpenDirectory "C:\Users\Administrator\Documents\"
Documents.Open FileName:="My File.docx"
Now once you get at least something partial, post back and we can help refine that.

How to change Back to top label in Joomla 3 template Protostar

Protostar is Joomla 3 default template. In the footer part, there is a link Back to Top which returns the user to the upper part of the html page.
The only document in which I have found this text so far is on location:
templates/protostar/language/en-GB
But, the change of the text didn't actually change it on website. So, I suppose there is another location for this.
Where can I go and change it?
When the template is installed, that file would get moved to language/en-GB/en-GB.tpl_protostar.ini, so that would be the file that actually needs to get updated.
That being said, a better method is to use the language override feature on the admin side. You'll see in that file that the language key is TPL_PROTOSTAR_BACKTOTOP (what is to the left of the equal sign).
On the admin side, go to Extensions -> Language Manager. Then on the left side of the page, click "Overrides". Hit the new button and add TPL_PROTOSTAR_BACKTOTOP as the constant and whatever new text you would like there in the "Text" box.
By using the override feature you protect your site from updates if the template's language file is updated in a later version.
If you want to use your site with other languages than English, create the respective template language pack in folder templates/protostar/language/
As an example: If you use German on your site, create a folder named de-DE, copy the english files en-GB.tpl_protostar.ini and en-GB.tpl_protostar.sys.ini into it and change their names to de-DE.tpl_protostar.ini and de-DE.tpl_protostar.sys.ini. Now you can change the respective line in de-DE.tpl_protostar.ini to TPL_PROTOSTAR_BACKTOTOP="nach oben"

Resources