How to change icons in cleditor? - javascript

Hi I am using cleditor in one of my projects.
I want to customize toolbar and change background of toolbar actions which is suitable to the theme of project. ( which i am not able to)
My findings are below
Height/width of action icon are hard coded to 24 value in jquery.cleditor.js.
Icons are taken from buttons.gif ( calculated from stripIndex of action in toolbar for background-position)
So i guess i will need to change both of these files ( button.gif/jquery.cleditor.js), which i believe is very tedious work.
Is there any easy way to set options to change icons in toolbar ?

I made a fork of cleditor where I changed the toolbar to use sprites so I could add
my own custom buttons easily might be able to use some of the work from that. I think
youd have to change the source code though.
https://github.com/billpull/cleditor
https://github.com/billpull/cleditor/commit/22dfe0b057360bdabab9ba184b8eef52f9de9ace

Related

Is it possible to create an absolutely positioned View that only blurs the content behind itself?

I'm having some trouble figuring out if creating an absolutely positioned view that blurs the content behind is even possible in React Native. I couldn't find anything related to blurring in the documentation aside from the fact that you can apply blur to the ImageBackground element.
My initial goal was to make the status bar of Android go on top of the content and have it be transparent and blurry, and I was able to make it transparent, but it seems that the React Native StatusBar component doesn't support any sort of blur so I had to figure out a different way.
This is why I decided to create an absolutely positioned View that would stay under the status bar and give that View a blur, but I didn't find any examples on blurring Views.
Basically 2 approaches:
No external library ->
If want to go ahead with no external library , then you have to use ImageBackground with a blur
And it looks something like this:
With library you need to use react native community blur view :
https://github.com/Kureev/react-native-blur#react-native-communityblur
This package is actually what you want i believe. its better to go with this rather than no package , since there it requires an Image.
Do lemme know in case of any concerns :)

Custom Navbar Dropdown

I'm wanting to implement something similar to following dropdown feature on my website, however I have limited skills in this area. Is there a css library I can use to get the desired result? Or will I have to manually create this myself?
Any examples would be appreciated.
Use BootStrap's Dropdowns. It supports images inside the text area. Overwrite the CSS so that it looks similar to the dropdown in the image. This way you won't need to rewrite everything.
https://getbootstrap.com/docs/4.0/components/dropdowns/

How to change the borders and background styles (color, views...) of my CDEditor manually?

I manage a website, and I use CDEditor for some reasons. I want to adapt the design of CDEditor to the website design, and for that reason, I downloaded CDEditor and tried to edit some sources files.
I tried for instance to edit contents.css, but it only helped me to alter the text color and the font-size, but not the background color or border color that I also wanted.
I also tried to edit the border (or background) properties in .../ckeditor/skins/editor.css, but nothing happened.
Now I don't know what to do,
please help !
Thanks for your views, I just got a solution to the problem by reading this tutorial :
http://o7planning.org/web/fe/default/en/document/640241/ckeditor-tutorial
It has a lot of great tips and tricks to customize ckeditors.
For example, to change background color, we can use this :
CKEDITOR.replace( 'textarea_id', {
uiColor: '#14B8C4'
});

Is it possible to costomize wizard control side bar to look like this?

I want stylize my asp.net wizard side bar to look similar to this :
http://www.jquery-steps.com/Examples#vertical
Is it even possible? As far as I know SideBarStyle does not allow much more than changing font color , size etc.
try F12 in IE to see what css styles are being set. you can override with your own by adding the ! in front of the css property you want to override.

Emulating an on-clickable input form

I'm seeking to emulate the on-clickable input forms that pops up when an user clicks on the blue bar as shown above. My experience with front-end development is limited so I don't know what to call these elements exactly, but let's say they are on-clickable input forms contained in a box, which can lead to other on-clickable forms like the date picker as shown.
How do I do this in Javascript? Preferably with AngularJS, since the app I'm working on uses that. I don't mind using JQuery though.
I'm not looking for detailed step-by-step instructions (which I don't mind), but hints to get me started on cloning these features.
Thanks.
The pop-ups you see are going to be HTML elements, probably <div>s. The page will use JavaScript to create event listeners on the bars to hide/show them when the bars are clicked/moused over. The "pop-ups" are really just like any other element in the page, but with a higher Z-index and using CSS positioning (most likely absolute) to make it appear as a pop-up. It also looks like they're using the CSS arrow trick to draw the speech bubble pointer, though it could also be accomplished with images.
If I were to develop this, I'd break it down into stages like this:
Get my pop-up into my HTML page, and make sure it's not appearing anywhere.
Make it show/hide when I wanted it to (either when the blue bar is clicked, or when the user mouses in/mouses out of the blue bar).
Make it show/hide where I want it to (near the blue bar)
Make it look better (work on the CSS and get the pointer to work properly)
Convert that work into a second-level popout. The second level is going to be the exact same technique, but maybe the CSS classes are going to be different so the second bubbles look different and have the pointer at a different position.
Of course, you don't have to develop this functionality yourself. There are also a number of jQuery plugins you could use, as well as Bootstrap's popover component.

Categories