Typo 3 neos Remove link - neoscms

I want know how to remove the link in backend.remove link I can add link and show it on frontend But i can't remove link. I press remove button, and link don't remove.
My NodeTypes.yaml code
link:
type: string
ui:
label: 'Link'
inspector:
editor: 'TYPO3.Neos/Inspector/Editors/LinkEditor'
How can I to fix it?

Related

TinyMCE - Custom Button for inserting a specific template

I am using Prestashop. I have made several templates. Is it possible to prepare a button that will insert the selected template?
For example, I have 4 templates and I want to make 4 buttons.
the first button inserts the first template.
the second button inserts the second template and so on.
I tried to use this code in the file \js\admin\tinymce.inc.js but my new button is not displaying :(
toolbar2: 'customInsertButton',
setup: function (editor) {
editor.ui.registry.addButton('customInsertButton', {
text: 'My Button',
onAction: function (_) {
editor.insertContent('My button works!');
}
});
},
Perhaps Prestashop has some limited version of this editor?
I ask because for example it is possible to add templates. but I would like to be able to insert them faster, with one button...
TinyMCE itself already has a template plugin:
https://www.tiny.cloud/docs/plugins/opensource/template/
Have you considered using that functionality?
I have already found a solution. It is possible by adding a custom plugin.
Everything is beautifully described on the TinyMCE website :
https://www.tiny.cloud/docs/advanced/creating-a-plugin/
then we modify tinymce.inc.js and add plugin support and a defined button in the toolbar.

Github pages - White look

Problem: When you click the link it shows only the title but nothing else
Why?
This is the link to the repository: https://github.com/H4YWYRE/UHD-Food-Market
and this is the link to the GitHub Pages: https://h4ywyre.github.io/UHD-Food-Market/
Current result:
When I click https://github.com/H4YWYRE/UHD-Food-Market, I do see the full page, not just the title.
I would still recommand to rename FMPUHD.html as index.html, to kame sure this file is considered by default as the homepage.

Remove advanced tab from Insert/Edit Media Dialog in TinyMCE 4

I want to remove advanced tab from media popup. How can I remove this advanced tab? Can anyone suggest me?
Example Image
Add below code to your editor configuration under init.
media_poster: false,
media_alt_source: false
Follow https://www.tiny.cloud/docs/plugins/media/#media_poster
There is no configuration to do this in TinyMCE. You can certainly modify the Media plugin's JavaScript file to remove this from the dialog.
If you look in the ../plugins/media folder within TinyMCE you will find the JavaScript for the plugin. If you look at plugin.js file you will find a section that defines the window/dialog:
win = editor.windowManager.open({
...
body: [
...
{
title: 'Advanced',
type: "form",
items: advancedFormItems
}
]
The body array contains the tabs for the dialog. If you remove the object that defines the Advanced tab it will no longer appear.

Tinymce customize toobar with custom plugin

I am using Tinymce Version: 4.6.5 and i have a custom plugin added.
But i would like to know if it is possible to add custom plugin to 'insert' toolbar?
Please see screen shot here
Any help would be really appreciated.
Thanks
The documentation page for creating a custom plugin shows how to make a menu item:
https://www.tinymce.com/docs/advanced/creating-a-plugin/
Specifically https://www.tinymce.com/docs/advanced/creating-a-plugin/#exampleplugin includes code that shows how to do this ... look at the code that starts:
// Adds a menu item to the tools menu
editor.addMenuItem('example', {
EDIT: If you want to add something to the Insert menu look at the source code for any plugin that is already doing that (e.g. Link). From that plugin you will see code like this:
editor.addMenuItem('link', {
icon: 'link',
text: 'Link',
shortcut: 'Meta+K',
onclick: Actions.openDialog(editor),
stateSelector: 'a[href]',
context: 'insert',
prependToContext: true
});
Note the context setting - this is what places the item on a specific menu.

Open link on press of "sap.m.Button" instead of using "sap.m.Link" [duplicate]

This question already has an answer here:
SAPUI5 Open link on Button press
(1 answer)
Closed 1 year ago.
I am relatively new to UI5. My search for "[sapui5] icon link" brought no useful results. So here is my question.
I have the following sap.m.Link
<Link id="myLink" href="http://stackoverflow.com/" text="Stackoverflow" />
which displays the text "Stackoverflow" on the UI, and when I click on it, I will navigate to stackoverflow.com. That's the effect I want.
But how can I replace the text with an icon, for example "sap-icon://download"? According to the Link-API, it doesn't have an attribute icon. So is there a way to get the same effect using sap.m.Button that does have this attribute:
<Button icon="sap-icon://download" press=".onDataExport" />
What would the handler onDataExport look like? My idea is to use a (somehow) hidden sap.m.Link and a sap.m.Button containing the icon. The press-handler of the Button would then somehow trigger a 'link clicked' (not sure if that is possible).
My answer comes a bit late, but I hope that it will help others, as I searched for a ready-to-use Link including an Icon (although this does not seem to be the real need of StoneCrusher).
Button which triggers link navigation:
If you want a sap.m.Button to act like a classical link, then you can attach a press event and use window.open in that event, like:
myButton.attachPress(function () {
window.open(url,target);
});
Link with UI5 icon:
If you want to display a sap-icon in a sap.m.Link, then you have to extend the link, include an aggregation which contains the icon and then render the icon before you render the text of the link.
renderer : function(oRm, oControl) {
[...]
oRm.write("<a");
oRm.writeControlData(oControl);
oRm.addClass("sapMLnk sapMLnkMaxWidth touconLink");
oRm.writeClasses();
oRm.write("href=\"javascript:void(0);\" ");
oRm.write(">");
//Render icon
if (icon!="") {
oControl.getAggregation("_icon").setIcon(icon);
oRm.renderControl(oControl.getAggregation("_icon"));
}
oRm.writeEscaped(text);
oRm.write("</a>");
}
I was in need of both and published these and other custom UI5 convenience controls here: www.toucon.fr
Use the below code in your onDataExport function in controller:
sap.m.URLHelper.redirect("https://stackoverflow.com/", true);
Refer to the below link for info: ui5.sap.com/#/sample/sap.m.sample.Link/preview
sorry only got reply in JSON style, but you see what is missing in your code:
jQuery.sap.require("sap.ui.core.IconPool");
var sBack = sap.ui.core.IconPool.getIconURI("nav-back");
var button = new sap.ui.commons.Button({
icon : sBack,
});