Jump to content

Trouble with CK editor and Textarea field in PW Admin


EyeDentify
 Share

Recommended Posts

Hello everyone.

I am back with a question thats come up lately when i was creating some new fields for a template of mine.

The following happend.

I created a new field of the "textarea" type and changed it to "CKeditor" on the Details tab under "inputfield type".
So far so good. Everything working as expected when editing data on the page using the template wich the field was assigned to.

But then i decided to get a little brave, so i went to edit the fields settings and under the "Input" tab i changed "Format tags" string to include the tag "strong".

The Format tag field string before my change was: "p;h1;h2;h3;h4;h5;h6;pre;address"
and after my change it was: "p;h1;h2;h3;h4;h5;h6;pre;address;strong"

Now, after that change when i saved it and went back to editing the data on the page, the CK editor refused to show and there was only the fields label but just white space under it.

If i go back and edit the field and the Format tags back to the default everything works again and the CK editor shows up when editing data.
But if i change the Format tags it goes away.

What i am doing wrong ?

Link to comment
Share on other sites

Dont' know why this is happening, but may I ask you why you need the <strong> tag inside the "format" dropdown?

Isn't enough to have the "B" button for that?

...and in case you need to apply <strong> instead of <b> you could check this link.

Am I missing something?

Link to comment
Share on other sites

Dont' know why this is happening, but may I ask you why you need the <strong> tag inside the "format" dropdown?

Isn't enough to have the "B" button for that?

...and in case you need to apply <strong> instead of <b> you could check this link.

Am I missing something?

Hello. Thank you for your reply.

I Rather use strong tag because its what should be used instead of B.

But its no big deal, I have worked around it. 

I was just curios why CK editor would not work when i changed the mentioned setting.

Link to comment
Share on other sites

For my CKEditor fields the "B" (Bold) button does apply the strong tag.

I think the Format dropdown is for block-level elements.

They should rename it so that its apparent that B as in Bold applies the <strong> tag. Cause for me i think tags like <b> and <strong>.

Maybe this is why CK editor shuts down when i change that setting ?

Link to comment
Share on other sites

I don't think the "B" and the "I" icons are meant to represent <b> and <i> HTML tags - they are likely carry-overs from the icons used in word processors.

As far as I know pretty much all WYSIWYG editors insert <strong> and <em> tags for these buttons.

The CKEditor docs confirm the Format dropdown is only for block-level elements so that's what's probably crashing it.

  • Like 4
Link to comment
Share on other sites

I don't think the "B" and the "I" icons are meant to represent <b> and <i> HTML tags - they are likely carry-overs from the icons used in word processors.

As far as I know pretty much all WYSIWYG editors insert <strong> and <em> tags for these buttons.

The CKEditor docs confirm the Format dropdown is only for block-level elements so that's what's probably crashing it.

I guess i have my answer then. Thank you for your help. :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...