Topic Closed
Eric
193 Posts
1.4K Downloads
1 Themes

Josh,

I'm testing out the config in 3.6rc2. Every time I try to enter a config, I get the error "Oops, that didn't work, please try again. (Invalid JSON String)"

I'm trying things like

config.coreStyles_bold = { element : 'b', overrides : 'strong' };

The only thing that kind of worked was copying the defaults into the config. But when I reopened it, it was full of \\\ and basically unreadable.

"{\r\n    \"smiley_path\" :\"\\\/client\\\/RRRetro2\\\/include\\\/thirdparty\\\/ckeditor_34\\\/plugins\\\/smiley\\\/images\\\/\",\r\n    \"height\" :300,\r\n    \"contentsCss\" :\"\\\/client\\\/RRRetro2\\\/include\\\/css\\\/ckeditor_contents.css\",\r\n    \"fontSize_sizes\" :\"Smaller\\\/smaller;Normal\\\/;Larger\\\/larger;8\\\/8px;9\\\/9px;10\\\/10px;11\\\/11px;12\\\/12px;14\\\/14px;16\\\/16px;18\\\/18px;20\\\/20px;22\\\/22px;24\\\/24px;26\\\/26px;28\\\/28px;36\\\/36px;48\\\/48px;72\\\/72px\",\r\n    \"ignoreEmptyParagraph\" :true,\r\n    \"entities_latin\" :false,\r\n    \"entities_greek\" :false,\r\n    \"scayt_autoStartup\" :false,\r\n    \"disableNativeSpellChecker\" :false,\r\n    \"FillEmptyBlocks\" :false,\r\n    \"toolbar\" :[\r\n        [ \"Source\", \"Templates\", \"ShowBlocks\", \"Undo\", \"Redo\", \"RemoveFormat\" ],\r\n        [ \"Cut\", \"Copy\", \"Paste\", \"PasteText\", \"PasteFromWord\", \"SelectAll\", \"Find\", \"Replace\" ],\r\n        [ \"HorizontalRule\", \"Smiley\", \"SpecialChar\", \"PageBreak\", \"TextColor\", \"BGColor\" ],\r\n        [ \"Link\", \"Unlink\", \"Anchor\", \"Image\", \"Flash\", \"Table\" ],\r\n        [ \"Format\", \"Font\", \"FontSize\" ],\r\n        [ \"JustifyLeft\", \"JustifyCenter\", \"JustifyRight\", \"JustifyBlock\", \"NumberedList\", \"BulletedList\", \"Outdent\", \"Indent\" ],\r\n        [ \"Bold\", \"Italic\", \"Underline\", \"Strike\", \"Blockquote\", \"Subscript\", \"Superscript\" ]\r\n        ],\r\n    \"language\" :\"en\",\r\n    \"extraPlugins\" :\"\",\r\n    \"filebrowserBrowseUrl\" :\"\\\/client\\\/RRRetro2\\\/Admin_Browser?type=all\",\r\n    \"filebrowserImageBrowseUrl\" :\"\\\/client\\\/RRRetro2\\\/Admin_Browser?dir=%2Fimage\",\r\n    \"filebrowserFlashBrowseUrl\" :\"\\\/client\\\/RRRetro2\\\/Admin_Browser?dir=%2Fflash\"\r\n    }"

7 years ago#5304

Josh S.
2K Posts
267K Downloads
16 Themes
18 Plugins

Ooh, that formatting isn't working right at all... I'm on it.

7 years ago#5305

Josh S.
2K Posts
267K Downloads
16 Themes
18 Plugins

Thanks for finding that issue, I just committed the fix. Here's a sample configuration:

{  "basicEntities" : false }

7 years ago#5306

cs
80 Posts

Hi,

entering config work now (with the latest changes in GitHub. But CKEditor does not recognise the inserted configs, e.g  I inserted

{
    "fontSize_sizes" :"12px;2.3em;130%;larger;x-small;"
    }

but these font sizes do not appear. (I am working on a local host). Any idea...

7 years ago#5322

Josh S.
2K Posts
267K Downloads
16 Themes
18 Plugins

I just tested the configuration you posted and it worked. Could you make sure you got all of the the latest changes, including those in /include/tool/editing.php. Even better, you can grab the entire master branch in one zip.

Edited: 7 years ago#5324

cs
80 Posts

ok, my fault, works now!

Thanks and keep up your excellent job on this cms!

7 years ago#5331

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register