Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

How do we add addCustomToolbarLine, i.e. some extra icons (features) #4

Open
SimonC-24 opened this issue Jul 4, 2017 · 2 comments
Open

Comments

@SimonC-24
Copy link

We realized some icon (features) are missing, e.g. 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-',
'TextColor','BGColor'. How do we add those?

I tried with

config.addCustomToolbarLine("{ items : ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-', 
'TextColor','BGColor'] }")

but still don't get icons, just basic ones.

@cloudyster
Copy link

Does anyone have a solution for this?
Thanks,

mark

@cloudyster
Copy link

Found it: CKEditorTextField does use the 'standard' ckeditor package, the other featues are included in the 'all' package so use

	/**
	 * for url see https://cdn.ckeditor.com/ or
	 * https://ckeditor.com/ckeditor-4/download/
	 */
	@JavaScript({"https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"})
	public class MyEditorTextField extends AbstractCKEditorTextField {

		CKEditorTextField(CKEditorConfig config) {
			super(config);
		}
	}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants