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

New Settings to Add #1

Closed
matdave opened this issue Dec 8, 2014 · 4 comments
Closed

New Settings to Add #1

matdave opened this issue Dec 8, 2014 · 4 comments

Comments

@matdave
Copy link
Contributor

matdave commented Dec 8, 2014

Here's a start to some additional settings to help with customizing:

default_paste_as_plain_text = "Setting to enable paste as plain text by default"
css_selectors = "Define CSS Selectors for spans and images (Looks like you can break it out into image-only classes, table-only classes, etc.)"
blockformats = "Define the avaiable block formats (e.g. disable h1)"
object_resizing = "Disable GUI object resizing (e.g. screws up percentage width images if image resized)"
templates = "under utilized, but helpful feature to choose chunks for predefined content templates"
image_advtab = "setting to true allows margin's to be set on images"

@rthrash
Copy link
Member

rthrash commented Feb 13, 2015

Any chance of a PR on this one?

@theboxer
Copy link
Member

@matdave Except css_selectors and templates I added all of those settings.

What do you mean by css_selectors? I didn't find this setting in tiny mce...

I'll add templates later.

@matdave
Copy link
Contributor Author

matdave commented Feb 17, 2015

@theboxer looks like you added it. Basically css_selectors was an old format that was pretty easy to use for assigning custom css classes (e.g. Class Title==class). However, it has been replaced with style_formats. Your commit works, I had one more along the lines of

$classes = $this->tinymcerte->getOption('css_selectors', array(),null);
        if(!empty($classes)){
            $class = explode(',',$classes);
            $classes = array();
            foreach($class as $cla){
                $cl = explode('==',$cla);
                $classes[] = array("title"=>$cl[0],"classes"=>$cl[1]);
            }
        }

then converted it to

    'style_formats_merge' => $this->tinymcerte->getOption('style_formats_merge', array(), true),
    'style_formats' => $classes,

@theboxer
Copy link
Member

Added style_formats_merge and closing this one :)

theboxer pushed a commit that referenced this issue Jan 18, 2016
added sync between textarea and tinymce-rte
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