Define custom styles
Hi, Is it possible to define custom styles via the toolbar dropdown ? Regards,
Do you want to declare new styles in the editor or in the application?
I would like to have the option in the Formatting dropdown, to add some additional custom styles - such as - note or quotation...or any other custom styled elements.
Thanks!
@melhaer If I understand you correctly, you need a setting that can be made when the editor is initialized? or on the end-user side?
Hello @kolkov , thank you for your reply! Me and my friend are looking for the apply css class functionality - demo and article. Thank you !
@danail-vasilev Who will set this custom formatting? The end user through the editor's menu or programmer when setting up the editor?
The programmer will define the set of custom styling, so the end user can apply the desired one.
Hi! I initialized support for custom classes. Try it please. If it usefull, we will extend later.
Hi, Thank you very much for the immediate implementation ! I think the read.me should be updated with the proper config property: customClasses: [ // optional should be renamed to customStyles as per this line: https://github.com/kolkov/angular-editor/commit/6d09b4542647827f467ac9897369823d619817c9#diff-847dab7018900297203b3ea812a02a36R56 Regards,
I have also another questions regarding predefined styles. What is the purpose of Default and Normal options because they don't take effect on selection ?
Hello, I want only a few options on the editor. Like only basic text styling. Is it possible to remove other options from the editor?
Hello, I want only a few options on the editor. Like only basic text styling. Is it possible to remove other options from the editor?
I am doing this way and is working:
In html file put any id to the component editor, for example "myEditor"
<angular-editor id="myEditor"
In Css file put the code below:
:host /deep/ angular-editor#myEditor .angular-editor-button[title="Insert Image"]{ display: none }
If you want remove others buttons, just copy and paste the code and change the title.
hi @kolkov i saw you latest release to add @kolkov/angular-editor to angular 6 + . My question is i wanna add a new custom button at the end of this toolbar in angular , is it possible?if yes, can you please paste the code here?
@updatepromise2020 Hi! This is not realized yet. Please open separate issue for this feature request.
Hi @kolkov I want to add some custom features (dropdown) inside angular-editor-toolbar. Is it possible?
hi @kolkov , can you please tell me how to customize tools in this? I mean how to access the tools in css?
Hii @kolkov , I chosen the justifyRight and then added some text and trying to send via mail , but In mail body I got only this -- "< span>text added.....< /span>" as HTML code , it does't have any text styling in it ..... so how Can I add this?
Hii @kolkov , also how can I add custom styling to that custom classes like richText?