Categories

.presentationUiPrevieweditor()

Categories: UI

de_epages.presentationUiPrevieweditor(options)

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.presentation.ui.previeweditor

Description: Open ckeditor in almostfullscreen mode, when the selected element is clicked and save the data to an (hidden) textarea.

  • de_epages.presentationUiPrevieweditor(options)

    version added: 6.15.0

    options   A map of additional options pass to the method.

The de_epages.presentationUiPrevieweditor() opens the ckeditor in almostfullscreen mode, when the selected element is clicked and saves the data to an (hidden) textarea, when almostfullscreen mode is exited.

  • Attach a presentationUiPrevieweditor to a div and associate a hidden textarea with it.

    HTML:
    <div id="editable">Some fancy content to edit.</div>
    <textarea name="myContent" style="display:none;">Some fancy content to edit.</textarea>
    
    Code:
    de_epages('#editable').presentationUiPrevieweditor({
    	name : 'myContent'
    });
    
    
  • name

    version added: 6.15.0

    The associated textarea is $('textarea[name="' + name + '"]').first()

    Default: ""

  • config

    version added: 6.15.0

    A config hash to pass to the editor.

    Default: {}