\n
What I am getting:
\nhello thanks for the help i solved the problem just removed the line \"extraPlugins : 'bbcode',\" and now its working
\n","author":{"@type":"Person","name":"Sakshi Sharma"},"upvoteCount":0}}}Reputation: 1472
I'm using CKEditor in a form. When I submit that form the content of I wrote in the text area of the CKEditor is saved in database in such format [b]helllo[/b][size=100]fefdf[/size]:*)
. In another page when I retrieve the data it shows in HTML as same [b]helllo[/b][size=100]fefdf[/size]:*)
instead of the output in BBCode format. Can anyone help me with how to get it in BBcode format?
What I want:
What I am getting:
Upvotes: 0
Views: 2190
Reputation: 1472
hello thanks for the help i solved the problem just removed the line "extraPlugins : 'bbcode'," and now its working
Upvotes: 0
Reputation: 25445
I deduce that BBCode option is activated when you call the editor (see this example code), so that shouldn't be the issue.
One thing you could try is setting the basicEntities config to false.
Taken from the CKeditor API:
<static> {Boolean} CKEDITOR.config.basicEntities
Since: 3.0
Whether to escape basic HTML entities in the document, including:
- nbsp
- gt
- lt
- amp
Note: It should not be subject to change unless when outputting a non-HTML data format like BBCode.
Defined in: plugins/entities/plugin.js.
config.basicEntities = false;
Default Value:
true
Upvotes: 1