Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Adding RTL Button to ckeditor #697

Open
Kharestani opened this issue May 16, 2016 · 5 comments
Open

Adding RTL Button to ckeditor #697

Kharestani opened this issue May 16, 2016 · 5 comments
Assignees

Comments

@Kharestani
Copy link

Q A
Bug? no
New Feature? yes
Sulu Version master

is it possible to add RTL Button to the CKEditor?
If you put me on the right pass I could do it myself and then pull request.

Thanks

@wachterjohannes
Copy link
Member

you can pass your custom over the params in the template.xml file.

                <property name="teaser" type="text_editor">
                    <params>
                        <param name="contentsLangDirection" value="rtl"/>
                    </params>
                </property>

i haven`t found any plugin which is able to display a rtl button.

@Kharestani
Copy link
Author

Kharestani commented May 17, 2016

Thank you for your help.
for ckeditor BiDi plugin works as such functionality.
I want to add this on admin side of the system it does not work there. I think

@wachterjohannes
Copy link
Member

currently there is no easy way to introduce an own plugin. in the near future there will be a feature in develop for that. i will give you a hint then.

@alexander-schranz
Copy link
Member

dont know if their where any changes in the 1.2 but in 1.1 this did work:

        <property name="article" type="text_editor">
            <meta>
                <title lang="de">Artikel</title>
                <title lang="en">Article</title>
            </meta>

            <params>
                <param name="link" value="true"/>
                <param name="table" value="true"/>
                <param name="height" value="100"/>
                <param name="max_height" value="500" />
                <param name="paste_from_word" value="true"/>
                <param name="extra_allowed_content" value="img(*)[*]; span(*)[*]; div(*)[*]; iframe(*)[*]; script(*)[*]" />

                <param name="toolbar" value='[{"name":"semantics","items":["Format"]},{"name":"basicstyles","items":["Superscript","Subscript","Italic","Bold","Underline","Strike"]},{"name":"blockstyles","items":["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","BidiLtr","BidiRtl"]},{"name":"list","items":["NumberedList","BulletedList"]}]' />
                <param name="extra_plugins" value="justify,format,sourcearea,link,table,pastefromword,autogrow,bidi" />
            </params>
        </property>

@wachterjohannes
Copy link
Member

@alexander-schranz but bidi is not core plugin of ckeditor. therfor it don`t find the plugin in the default folder.

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

No branches or pull requests

3 participants