Custom Property Editor (edit the title property)

Please read the license agreement if you want to use Survey Creator widget in your app(s). Visit our buy page to find out developer license(s) price.
Use CK Editor as a property editor

                        var CkEditor_ModalEditor = {
    afterRender: function(modalEditor, htmlElement) {
        var editor = CKEDITOR.replace(htmlElement);
        editor.on('change', function() {
            modalEditor.editingValue = editor.getData();
        modalEditor.onValueUpdated = function (newValue) {
    destroy: function(modalEditor, htmlElement) {
        var instance = CKEDITOR.instances[];
        if (instance){
SurveyCreator.SurveyPropertyModalEditor.registerCustomWidget("html", CkEditor_ModalEditor);
SurveyCreator.SurveyPropertyModalEditor.registerCustomWidget("text", CkEditor_ModalEditor);

var questionDef = SurveyCreator.SurveyQuestionEditorDefinition.definition.question;

//Modify Question Editor. Remove title from general and add it as a tab.
questionDef.tabs.push({name: "title", index: 1});["title"] = "Title";
var ind ="title");
if(ind > -1), 1);

//Create showdown mardown converter
var converter = new showdown.Converter();
function doMarkdown(survey, options) {
    //convert the mardown text to html
    var str = converter.makeHtml(options.text);
    //remove root paragraphs <p></p>
    str = str.substring(3);
    str = str.substring(0, str.length - 4);
    //set html
    options.html = str;

var creatorOptions = { };
var creator = new SurveyCreator.SurveyCreator("creatorElement", creatorOptions);

creator.onDesignerSurveyCreated.add(function(editor, options){
creator.onTestSurveyCreated.add(function(editor, options){
<!DOCTYPE html>
    <title>Use CK Editor as a property editor, Survey Creator Example</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src=""></script>
<script src=""></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <script src="" type="text/javascript" charset="utf-8"></script>
    <!-- Uncomment to enable Select2
    <script src=""></script>
    <link href="" rel="stylesheet" />
    <script src=""></script>
    <link href="" type="text/css" rel="stylesheet" />
    <script src=""></script>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="./index.css">
<script src=""></script>
<script src=""></script>

        <div id="surveyContainer">
        <div id="creatorElement"></div>

<script type="text/javascript" src="./index.js"></script>