Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins #33

Open
johntom opened this issue Jan 9, 2015 · 3 comments
Open

Plugins #33

johntom opened this issue Jan 9, 2015 · 3 comments

Comments

@johntom
Copy link

johntom commented Jan 9, 2015

Hi Tyler,
First I'd like to thank you for your contribution as this is the best editor I've seen. I just purchased Redactor v10.0.6 and installed your latest version with angular 1.3.5. After working with this the past 2 days, I think the following might help others getting started with some of the advanced features.

  1. I've got all my libs loaded (download plugins)
    'bower_components/redactor/redactor.js',
    'bower_components/redactor/table.js',
    'bower_components/redactor/fullscreen.js',
    'bower_components/redactor/video.js',
    'bower_components/redactor/clips.js',
    'bower_components/redactor/imagemanager.js',
    'bower_components/angular-redactor/angular-redactor.js',
  2. added to app.js angular.module('sailng', [... ,'angular-redactor']...
  3. added to to app.js
    .config(function(redactorOptions) {
    redactorOptions.imageUpload = '/upload';
    redactorOptions.focus = true;
    redactorOptions.enterKey = true;
    redactorOptions.linebreaks = true;
    redactorOptions.pastePlainText = false;
    redactorOptions.buttonSource = true;
    redactorOptions.imageResizable = true;
    redactorOptions.imageEditable = true;
    redactorOptions.imageLink = true;
    redactorOptions.visual = true;// flase for html mode
    redactorOptions.plugins = ['table','fullscreen','video','imagemanager'];
    redactorOptions.buttons =   ['html', 'formatting', 'bold', 'italic', 'deleted',
        'unorderedlist', 'orderedlist', 'outdent', 'indent',
         'image',     'video', 'file','table', 'link', 'alignment', 'horizontalrule','fullscreen','clips']
})

While the upload feature is a bit ticky and requires a good read of documnetation, everything works as expected except
The enterKey does not execute crlf when in a table.
Thanks,
John

@carlosCeron
Copy link

Hi @johntom Where solve the Snippets pass or set the Snippets list to clip plugin

@TylerGarlick
Copy link
Owner

@johntom I think what @carlosCeron is trying to say is have you included the .js files for the plugins to your html page?

@johntom
Copy link
Author

johntom commented Jan 20, 2015

Sorry, a bit confused, that's why I referrenced them as 'bower_components/redactor/redactor.js'...
I place all libs in a grunt/pipeline.js file (see co-authored repo https://github.com/SharePointOscar/MEANS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants