﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14647	BBCode output stops working when Wordcount plugin added via CKBuilder	Alan Howshall		"== Steps to reproduce ==

1. Go to CKBuilder with following URL http://ckeditor.com/builder/734cfcca433721a20675475635994d04 and download Optimised version of 4.5.9 with that set of features
2. Extract unaltered contents of downloaded Zip and open /samples/index.html in a browser.
3. Make 'Hello world!' sample text into Bold.
4. Toggle into 'View source' mode.

== Expected result ==
Source code view should output [b] style BBCode tags around Bold formatted content and then correctly re-display Rich Text preview when exiting View source mode.

== Actual result ==
Source code view outputs HTML, instead of BBCode, style tags. Then, because BBCode plugin is still present and partially working, exiting and entering 'View source' causes progressively worse corruption of both Preview and Source code text contents.

== Other details (browser, OS, CKEditor version, installed plugins) ==
This problem does not occur with near identical CKBuilder download of http://ckeditor.com/builder/6e18dbe9776749ca0c98f94ccc0e842f who's only difference is not adding Wordcount plugin. 
However my project obviously wants all those features including Wordcount!

Incorrect behaviour replicated consistently on Windows 8.1 with Firefox 46, IE11 and Chrome 50. CKEditor version is 4.5.9

Paste of build-config.js from problem CKBuilder download:

/**
 * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

/**
 * This file was added automatically by CKEditor builder.
 * You may re-use it at any time to build CKEditor again.
 *
 * If you would like to build CKEditor online again
 * (for example to upgrade), visit one the following links:
 *
 * (1) http://ckeditor.com/builder
 *     Visit online builder to build CKEditor from scratch.
 *
 * (2) http://ckeditor.com/builder/734cfcca433721a20675475635994d04
 *     Visit online builder to build CKEditor, starting with the same setup as before.
 *
 * (3) http://ckeditor.com/builder/download/734cfcca433721a20675475635994d04
 *     Straight download link to the latest version of CKEditor (Optimized) with the same setup as before.
 *
 * NOTE:
 *    This file is not used by CKEditor, you may remove it.
 *    Changing this file will not change your CKEditor configuration.
 */

var CKBUILDER_CONFIG = {
	skin: 'bootstrapck',
	preset: 'basic',
	ignore: [
		'.bender',
		'bender.js',
		'bender-err.log',
		'bender-out.log',
		'dev',
		'.DS_Store',
		'.editorconfig',
		'.gitattributes',
		'.gitignore',
		'gruntfile.js',
		'.idea',
		'.jscsrc',
		'.jshintignore',
		'.jshintrc',
		'less',
		'.mailmap',
		'node_modules',
		'package.json',
		'README.md',
		'tests'
	],
	plugins : {
		'basicstyles' : 1,
		'bbcode' : 1,
		'clipboard' : 1,
		'enterkey' : 1,
		'entities' : 1,
		'indentlist' : 1,
		'list' : 1,
		'pastefromword' : 1,
		'pastetext' : 1,
		'removeformat' : 1,
		'sourcearea' : 1,
		'toolbar' : 1,
		'undo' : 1,
		'wordcount' : 1,
		'wysiwygarea' : 1
	},
	languages : {
		'en' : 1
	}
};"	Bug	closed	Normal		General		invalid		
