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

Wp editors have same id #3021

Open
sollerpolt opened this issue Nov 16, 2017 · 1 comment
Open

Wp editors have same id #3021

sollerpolt opened this issue Nov 16, 2017 · 1 comment

Comments

@sollerpolt
Copy link

Hi.

I want to use option with 'type' => 'wp-editor' in Slider with custom population.

Part of custom.php:

			'content2' => array(
				'type'   => 'wp-editor',
				'teeny'  => false,
				'reinit' => true,
				'size'   => 'large',
				'label'  => esc_html__( 'Content', 'stt' ),
				'desc'   => esc_html__( 'Enter content', 'stt' ),
				'editor_height' => 160,
				'value' => '<h1 style="text-align: center;"><span style="font-size: 36px;">Mauris vel velit dignissim</span></h1><p style="text-align: center;"><span style="font-size: 16px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vulputate vehicula sollicitudin. Aliquam rutrum aliquet nisl sit amet viverra. Nunc ac augue nunc.</span></p>',
			),

Every thing works fine, but id of editor cached, so when i create first slide and want add second, they both get same id and second don't work.

Screenshot of first slide (all OK):

1
Screenshot of second slide (broken):
2

Tnx for your help and sorry for my English.

@danyj
Copy link
Contributor

danyj commented Nov 16, 2017

@andreiglingeanu , might be related

#2564

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

2 participants