Is there any way to keep the inline styles (eg. bold) after user pressed enter - inserted a new line?
Block level styles are kept, but all inline styles are deleted. Another issue linked to this is that if I enter a new line, I cannot set inline styles before entering text. The only way is to type in some text and then set the inline styles.
Block level styles are kept, but all inline styles are deleted. Another issue linked to this is that if I enter a new line, I cannot set inline styles before entering text. The only way is to type in some text and then set the inline styles.
Re: Inline styles - keep after new line
As for the second scenario -- you can do this, but you cannot change cursor location during the process. When you click "Bold", for example, you start a new <strong> element at the location of the cursor. If you click somewhere else, your <strong> element is empty and thus is not created, so the styling disappears. You can however place the cursor at the desired location, click "Bold" or whatever else and go on typing -- the style will be used.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!