Following the documentation of JS customizations in connections, I want to customize the CKEditor. I unziped the web ressources jar from blogs in {provision_dir}/webresources/:
unzip -d web-ressources-extracted com.ibm.lconn.blogs.web.resources_*.jar
Now there is a file called ckeditor.js in web-ressources-extracted/resources. According to this presentation, I copied it to {customization_dir}/lconn/blogs and edited {customization_dir}/lconn/blogs/ckeditor.js.
For testing purpose, I removed the Undo button in the toolbar:
{
name: 'tools',
items: [/*'Undo',*/ 'Redo', 'MenuPaste', 'Find', 'LotusSpellChecker', 'ShowBlocks', 'IbmPermanentPen']
}
After restarting the common-application, I checked the dedicated blogs application as well as the blogs module in communitys. Both still have the Undo button as first element in the toolbar. It also doesn't help to checkout LotusConnections-config.yml and update versionStamp, which should update all caching buster timestamps on javascript files.
The editor is activated in {customization_dir}/tiny/editors/connections/config.js by setting editor: "CKEditor".
Why are my changes not applied in the CKEditor of blogs?
I realized that there was a mistake in the target folder: I copied the editor config file to {customization_dir}/lconn/blogs/ckeditor.js instead of {customization_dir}/javascript/lconn/blogs/ckeditor.js.
After fixing the path and restarting common, it works.
Related
Hi I'm using TYPO3 CMS 6.2.14 with FluidTYPO3 (flux 7.2.2, fluidcontent 4.3.2and vhs 2.3.3). Since the last few TYPO3 installations my Icons for Fluidcontent-Elements are missing in Backend?! I've didn't change the path or sth. else.
Here are my tries, nothing works:
<flux:form id="fce6" icon="../typo3conf/ext/mytemplates/Resources/Public/Icons/Content/Icon.gif" wizardTab="FCE" options="{Fluidcontent: {sorting: 106}}">
...
<flux:form id="fce6" options="{Fluidcontent: {sorting: 105}, group: 'FCE', icon: '{f:uri.resource(path: \'Icons/Content/Icon.gif\')}'}">
...
<flux:form id="fce6" options="{icon: '{f:uri.resource(path: \'Icons/Content/Icon.gif\')}'}">
...
<flux:form wizardTab="Bootstrap" id="tabs" icon="{v:extension.path.resources(path: 'Icons/icon-tabs.gif')}">
If I inspect the missing Icons in Backend with a developer tool (browser), the Icon is found, so I don't understand it.
../typo3conf/ext/mytemplates/Resources/Public/Icons/content/Icon.gif
Some sceenshots
-
The funny thing is, that the Icon is still there, if you're inside the Fluidcontent Element (FCE), see last screenshot (red bar icon):
EDIT :: I was looking in one of my older TYPO3-Projects and the Icons are still there: flux 7.2.1, fluidcontent 4.2.4 and TYPO3 6.2.15
Code:
<flux:form id="tabsvertical" options="{Fluidcontent: {sorting: 305}, group: 'FCE', icon: '{f:uri.resource(path: \'Icons/Content/Example.gif\')}'}">
See screenshot:
Flux supports convention based icons since v.7.2.0.
It means, that for each your template you can have corresponding icon in Icons folder, which will be shown automatically.
Example:
Template file typo3conf\ext\my_ext\Resources\Private\Templates\Content\Grid-1.html should have an icon typo3conf\ext\my_ext\Resources\Public\Icons\Content\Grid-1.png.
See more in changelog.
I spent some hours with TYPO3 6.2.15 and 7.5 to get icons running. The convention based icons did the job for 6.2.15. Rather than using a f:uri.resource(), which will not work. The flux form configuration is somehow rendered in a special container. E.g. for the "new content elements page". Try to put a var_dump() into the view helper. Best combined with an exit(). The container does not seem to be aware of the extension. That is for 6.2.15 and the current versions of fluid/flux. For 7.5 the 7.2.3 does not produce any reasonable results. I only get /typo3/ as icon path. But the 7.2.4 is expected to fix it.
I use this Options Fields for Backend Icons and Grouping.
<flux:form.option.group value="Content" />
<flux:form.option.icon value="EXT:ext_name/Resources/Public/Icons/Content/HeroImage.svg" />
I also added the <flux:form.option name="settings.options"> as wrapper around the group and icon Definitions
I'm not using FluidContent but Flux Version 8.2 and TYPO3 8.7.15
I go to CKEditor Builder and customize it´s full version adding some plugins, specifically (Upload Image, Image Browser and Auto Save)
FileBrowser is supposed to be a preset addon.
When i click to build it, it generates a zip file.
Looking into this zipfile i can´t see some of the correspondent folders inside plugin folder, like: "imagebrowser", "uploadimage".
Even the "filebrowser" that is a preset plugin for this version and "widget", "popup", "lineutils" and some of other necessary folder aren´t there.
PS: The "autosave" plugin installs correctly.
Whats going on? Does anyone knows whats wrong? I´ve tried other plugins combinations to check if the folders are included. I´ve restarted the computer, cleared browser cache, changed computers...nothing worked :(
I need Filebrowser, UploadImage e ImageBrowser.
If I install it manually it seens to work. But i´m having some troubles trying to configure it.
CKBuilder takes the plugins that you request and tries to merge all the plugin.js files to improve performance, so it's normal that you don't see many folders in the zip.
I'm injecting a css file from my chrome extension using the manifest.json (full source):
"content_scripts": [
{
"matches": [
"http://*/*"
],
"css":["src/inject/gfi_extension.css"],
"js": [/*...*/]
}
]
In Chrome Dev Tools, if I inspect an element which is affected by the injected css, the rules are visible, but in the upper right where the source filename would normally be, it just says "injected stylesheet." I'd like to view ALL of the rules being injected, even those that affect elements which do not currently exist in the DOM.
I would have expected the .css to appear in "sources" under "content scripts" with the .js files, but they aren't there.
Is there a way to view the .css file through dev tools? If not, please explain why there isn't.
Edit: I've just found that this question also appears as a "sub-question" of this one, however no one over there has attempted to answer it, even though there is an accepted answer.
Looks like there's no way to do this if you inject the CSS via content_scripts. I filed a bug here: https://crbug.com/800070
When the extension is in your control, Paul Irish suggests using this code pattern in order to make your styles inspectable: https://github.com/lateral/chrome-extension-blogpost/compare/master...paulirish:master
For other people's extensions, as far as I can tell there's no way to view the source code of the injected stylesheets in DevTools, if you go the content_scripts route.
Go to Sources and then Content Scripts. You have to go to the extension name and then you'll see the injected files.
Use the Chrome App and Extensions Developer Tool on an extension which injects CSS, such as Bootstrap Grid Overlay:
the injected URL can be used on the console tab on the app to get the runtime URL using the getURL method:
chrome.runtime.getURL("src/grid.css")
and produce the source:
References
Content Scripts - Google Chrome
chrome.runtime - Google Chrome
I've made a couple plugins for ckeditor and added icons for them. These icons show up when I embed the unbuilt code on a test page, but, when I build the editor, the minimized code thinks the icons at 'original/path/to/the/icon.png?t=D5AK' instead of 'original/path/to/the/icon.png'. This error does not occur when I copy an icon from another plugin in the src code. At the moment the only way I am adding the icon is through "icon: this.path + 'icons/icon.png'," in plugin.js. Is there somewhere I need to add a reference to the icon?
This is an intentional addition to resources' paths. It ensures that every two CKEditor releases have different paths to the same resource what disables cache. And this works perfectly unless you're trying to load CKEditor from local file system than from a web server.
I'm using Telerik grids, and want to customize the CSS. I've used Telerik's stylebuilder but I don't know what to do with it once I download the zip. Telerik says that I should
Simply add the files from this archive to your project, and your custom skin is ready go.
But I have no idea where in the project to add them, or even how exactly this is done. I moved the CSS files into the stylesheets folder (I'm using MS Visual Studio 2010) and linked to them, but no dice.
I've also read through this this and this but am still thoroughly confused.
Try the following:
Export theme from style builder, example classic.zip.
Contents of classic.zip
Folder: classic
File: telerik.classic.css
Extract zip to your project's content folder, c:\path to your project\Content\
Modify your master page style sheet regsitrar to include telerik.classic.css instead of the supplied style sheets.
:
<%= Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group.Add("telerik.common.css")
.Add("telerik.classic.css"))
%>