angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Define custom styles

Open danail-vasilev opened this issue 8 years ago • 17 comments

Hi, Is it possible to define custom styles via the toolbar dropdown ? Regards,

danail-vasilev avatar Jul 09 '18 13:07 danail-vasilev

Do you want to declare new styles in the editor or in the application?

kolkov avatar Jul 09 '18 15:07 kolkov

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 avatar Jul 09 '18 19:07 melhaer

@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?

kolkov avatar Jul 09 '18 19:07 kolkov

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 avatar Jul 09 '18 19:07 danail-vasilev

@danail-vasilev Who will set this custom formatting? The end user through the editor's menu or programmer when setting up the editor?

kolkov avatar Jul 09 '18 19:07 kolkov

The programmer will define the set of custom styling, so the end user can apply the desired one.

danail-vasilev avatar Jul 09 '18 20:07 danail-vasilev

Hi! I initialized support for custom classes. Try it please. If it usefull, we will extend later.

kolkov avatar Jul 12 '18 15:07 kolkov

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,

danail-vasilev avatar Jul 13 '18 13:07 danail-vasilev

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 ?

danail-vasilev avatar Jul 13 '18 15:07 danail-vasilev

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?

mohdaftab93 avatar Oct 10 '18 06:10 mohdaftab93

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.

Aleksluciano avatar Nov 15 '18 08:11 Aleksluciano

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?

ghost avatar Feb 12 '20 19:02 ghost

@updatepromise2020 Hi! This is not realized yet. Please open separate issue for this feature request.

kolkov avatar Feb 12 '20 21:02 kolkov

Hi @kolkov I want to add some custom features (dropdown) inside angular-editor-toolbar. Is it possible?

AdityaSrivastava21 avatar May 07 '20 22:05 AdityaSrivastava21

hi @kolkov , can you please tell me how to customize tools in this? I mean how to access the tools in css?

kaushikduttaAlgo avatar Oct 12 '21 11:10 kaushikduttaAlgo

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&gttext added.....< /span&gt" as HTML code , it does't have any text styling in it ..... so how Can I add this?

ajeetkumarver avatar Jun 19 '23 13:06 ajeetkumarver

Hii @kolkov , also how can I add custom styling to that custom classes like richText?

ajeetkumarver avatar Jun 19 '23 13:06 ajeetkumarver